Move all sub directories and files
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
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Mahesh ChandRank #1 · 393.4K pointsPosted Nov 16, 2006, 2:03 PM EST