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?
Loading
chellappan pandiarajanPosted Jan 8, 2013, 12:57 PM
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 JayaramanPosted Jan 8, 2013, 12:40 PM
then try with this code