Results 1 to 3 of 3

Thread: Renaming a folder

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2000
    Location
    Dayton, OH USA
    Posts
    119

    Question

    What is the easiest way to rename a folder.

    Essentially what I am doing is unzipping a zip file into a temp folder, waiting for it to complete, and then renaming it to the live directory.

  2. #2
    Addicted Member
    Join Date
    Jul 2000
    Location
    Scotland
    Posts
    184
    use the VB name

    Code:
    Dim OldName, NewName
    OldName = "OLDFILE": NewName = "NEWFILE"   ' Define file names.
    Name OldName As NewName   ' Rename file. 
    
    OldName = "C:\MYDIR\OLDFILE": NewName = "C:\YOURDIR\NEWFILE"
    Name OldName As NewName   ' Move and rename file.

  3. #3
    Guest

    Wink

    So it works on folders too? Nice!

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