-
file.move
I have several files beneath a directory that I need to move to another directory. Basically daily report files will be moved to an archive directory before new reports are created. I can not figure out how to move all files beneath a directory to another directory. MoveFile does not like wildcards I guess.
-
You can try copying and pasting or you can iterate through the files and copy them one at a time.
-
Use the directory object.
http://msdn.microsoft.com/library/de...smovetopic.asp
What you need to do is move the directory to where you want, maybe rename it also...
Then create a new empty directory where the old one was.
As the link shows, the Directory.Move moves the directory and all contents to the new location.