XCopy copy location issue

November 7, 2012 at 08:32:17
Specs: XP\7
Xcopy is copying files to the location the program is ran from not the destination location.

This is being used in a C# program where I am [pluging in variables into the xcopy arguements to do my backups. Here is my xcopy:

string xcopyCode = string.Format(((@"S:\*.*" + "/D:{0:MM-dd-yyyy}")), dateTimePicker1.Value.Date); string.Format(((@"\\N:\\{0:MM-dd-yyyy}\\" +textBox1.Text+"-Log-Files\\*.*")), dateTimePicker1.Value.Date, textBox1.Text);

See More: XCopy copy location issue

Report •

November 7, 2012 at 12:51:50
Any ideas anyone>?

Report •

November 7, 2012 at 14:00:30
Here is my revised code:

string xcopyCode = (string.Format("S:\\" + "N:\\{0:MM-dd-yyyy}\\" + textBox1.Text + " Log Files" + "/D:{0:MM-dd-yyyy}", dateTimePicker1.Value.Date, textBox1.Text));

Report •
Related Solutions

Ask Question