G+_Christophe Vandingelen Posted April 27, 2014 Share Posted April 27, 2014 Hi everyone I'd like to know how to copy (or xcopy like it was before in ms dos) files in a c# program, is it still with copy / xcopy or is it something else? ? Link to comment Share on other sites More sharing options...
G+_Joe Maruschek Posted April 28, 2014 Share Posted April 28, 2014 You can use the File class in the System.IO namespace. The File class has a bunch of static methods to help you manipulate files, and one of them is the Copy() method. See http://msdn.microsoft.com/en-us/library/c6cfw35a.aspx Link to comment Share on other sites More sharing options...
G+_Bob Samuelson Posted May 1, 2014 Share Posted May 1, 2014 put robocopy in a bat file with the switches set as you need/want and it will do the rest. A MS command line tool. http://www.computerhope.com/robocopy.htm Link to comment Share on other sites More sharing options...
Recommended Posts