Results 1 to 4 of 4

Thread: Quick question, quick answer!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    99

    Talking

    How do you rename files? I.e. rename C:\blah.txt to C:\blah.txt2
    ___________________________
    Chris

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177
    Code:
    Name "C:\TheFile.txt" As "C:\TheFile2.txt"

  3. #3
    Guest
    Use the Name statement.

    Code:
    Name "C:\blah.txt" As "C:\blah.txt2"

  4. #4
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    617

    hmm

    CBV..
    do this

    dim Newname as variant
    dim OldName as variant

    NewName = "C:\Blahblah"
    OldName = "A:\BlohBloh"

    'Copy this file from A: to C: under a different name
    Name OldName as NewName


    Quick answer was what u wanted

    That should work
    Let us know otherwise

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