Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2004
    Posts
    3

    Unanswered: how to rename a dir

    I want to move/copy files to a dir called "dummy.m" and afterwards rename the dir to "aniline.m"

    How do I go about it??
    I can't make it work. Path unknown etc.????

  2. #2
    Join Date
    May 2004
    Posts
    97
    What have you tried?

    The NAME statement does what you want, somewhat. It will move/rename files, and will rename folders. It will not (that I know of) MOVE a folder to a new location. For that you need to create a new folder in the location where you want, and move the files directly into it.

    I could be wrong...

  3. #3
    Join Date
    Nov 2004
    Posts
    108

    Exclamation Search in MSDN for FileSystemObject

    Code:
    FileSystemObject.CopyFolder "c:\mydocuments\letters\*", "c:\tempfolder\"
    to err is human ; to really mess things up requires a computer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •