Move all sub directories and files

Nov 16 2006 11:18 AM
Hi, I am trying to write a very simple C# console application that will move all files and directories under a certain directory to another computer, for example FROM C:\Directory\move all files and directories here TO \\OtherPC\C$\FILES_MOVED\ I have tried Directory.Move(@"C:\FROMHERE\*.*", @"\OTHERPC\C$\TOHERE\"); But it does not like the *.* for all directories and files Can anyone help me Thanks Joolz

Answers (1)