Results 1 to 3 of 3

Thread: file.move

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Posts
    2

    Angry 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.

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    You can try copying and pasting or you can iterate through the files and copy them one at a time.

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    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
  •  



Click Here to Expand Forum to Full Width