Results 1 to 34 of 34

Thread: I can't get move() to work! [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    I can't get move() to work! [RESOLVED]

    Code:
    Dim mov As Directory
    
                Try
                    mov.Move(app & OldFileName, OldPath & OldFileName)
                    MessageBox.Show("Sucess!")
    I am trying to move a file that will be in the same directory as my program to a system directory but it just won't work. I'm not sure *** is wrong!

    app = application.StartupPath
    OldFileName = "\text.txt"
    OldPath = "C:\WINDOWS"

    I used the rename() function to rename something and I am going to replace it with the file that is in the folder with my program. File names in the example are different from what I'm actually doing but it doesn't matter.
    Last edited by Kasracer; Jul 8th, 2003 at 11:27 AM.

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