In C# 2008 application, I want to move an excel 2010 file from one directory struture location to another location. I basically want to remove the file from the first location and place the excel file in a second location.
Thus can you show me code how to accomplish this goal?
C# move file
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

chellappan pandiarajan79 reputationPosted Jan 8, 2013, 7:57 AM EST
string target = @"D:\Sample.xls";
//To move from one location to another
System.IO.File.Move(source, target)
//To Delete the file from source Location
System.IO.File.Delete(source);
Try this....
-Pandian
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Jan 8, 2013, 7:40 AM EST
then try with this code