Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete an EXE
Message
From
19/05/2011 15:50:27
 
 
To
19/05/2011 04:25:33
Issam Mansour
Jordan Business Machines
Amman, Jordan
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
01511088
Message ID:
01511168
Views:
50
>i try to use the following:-
>
>clear program
>clear events
>erase
>
>the same error message.
>
>clear all
>
>you can't use this command on running application.

The only other thing I can think of is perhaps, if you have just closed or exited the exe file, and then you immediately try to delete it, maybe the file system has not finished releasing any locks it might have on the exe file. You might be able to get around this by introducing a delay before you ERASE:
CLEAR EVENTS
CLEAR PROGRAM

=INKEY( 2 ) && Waits 2 seconds

ERASE ...
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform