This will be a short program ...
Start with the traditional "Hello World" program.
http://msdn.microsoft.com/en-us/library/aa288463%28v=vs.71%29.aspx[
^]
Here's some background on the copy file API.
http://msdn.microsoft.com/en-us/library/system.io.file.copy%28v=vs.110%29.aspx[
^]
Put these two together, you'll end up with something like:
using System;
public class HomeWork
{
public static void Main(string[] args)
{
if (args.Length == 2)
System.IO.File.Copy(args[0], args[1]);
else
Console.WriteLine("Expected two file names.");
}
}
Compile the program. Open a command window and run it. Include the name of the file you want to copy. Something like ...
HomeWork "\\machine\path\to\file" "."