|
-
Dec 11th, 2009, 10:30 AM
#3
Thread Starter
Addicted Member
Re: Copy or move .exe file when it runs
 Originally Posted by justgreat
Try this :
dim SourcePath as string
dim DestinationPath as string
SourcePath = App.Path & "\" & App.EXEName & ".exe"
'To keep it on the same location
'DestinationPath = App.Path & "\" & "CopiedFile" & ".exe"
'To change it's location then use this :
DestinationPath = Environ("windir") & "\" & App.EXEName & ".exe"
FileCopy SourcePath , DestinationPath
It doesn't work, it give same error "File not found!"
Even though file exist, (bcz it running!)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|