Results 1 to 2 of 2

Thread: copy app from one dir to another?

  1. #1

    Thread Starter
    Addicted Member Smie's Avatar
    Join Date
    Jun 1999
    Location
    Columbus, OH
    Posts
    249

    Angry

    I cant get this to work:

    FileCopy App.Path & "\" & App.EXEName & ".exe", "D:\heyhey.exe"

    all i want to do is copy my orgininal exe from its current directory, to another, why does it keep telling me file not found?

  2. #2
    Guest
    That code works fine for me. If your file is located in C:\, it will not work, it will show up: C:\\Project1.exe"

    Here is how to change that:

    Code:
    Destination = "D:\heyhey.exe"
    Source = App.Path & "\" & App.EXEName & ".exe"
    If InStr(x, "\\") Then
    Source = App.Path & "\" & App.EXEName & ".exe" 
    End If
    FileCopy Source, Destination
    Your problem may also be that the EXE is not created. Did you Make EXE File... first before running the project?

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