Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy file when it is opened
Message
From
18/07/2002 05:12:33
 
 
To
18/07/2002 05:09:32
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00679901
Message ID:
00679904
Views:
18
This message has been marked as the solution to the initial question of the thread.
Try copying your file using ShellExecute, this way it will be Windows doing the copying rather than your FoxPro app.

Do you need more info on shellExecute?

Kev

>Hi,
>
>I'm using "Copy File MyProg.exe to \OtherFolder\MyProg2.exe"
>
>Jimi
>
>>What command are you using to copy the file, are you using ShellExecute?
>>
>>Kev
>>
>>>hello everybody,
>>>
>>>I'm running a program MyProg.exe. I want the program to copy itself to another directory, but Copy File refused to copy a file which is opened. I can still copy the file in window explorer so I think it should be possible. Do anyone have any idea, such that I can make the program copy itself away?
>>>
>>>Thanks very much!
>>>Jimi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform