|
-
Aug 1st, 2002, 08:49 AM
#1
Thread Starter
New Member
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.
-
Aug 1st, 2002, 01:35 PM
#2
Frenzied Member
You can try copying and pasting or you can iterate through the files and copy them one at a time.
-
Aug 1st, 2002, 01:59 PM
#3
PowerPoster
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|