Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete an EXE
Message
From
19/05/2011 03:46:05
 
 
To
19/05/2011 03:38:13
Issam Mansour
Jordan Business Machines
Amman, Jordan
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
01511088
Message ID:
01511091
Views:
58
>The exe i am trying to delete is anther exe then the one that running.

If it's in VFP the command you want is the ERASE command:
ERASE C:\FolderPath\MyProgram.EXE

* If path or file name has spaces:
ERASE "C:\Program Files\SomeFolder\MyProgram.EXE"

* Or, as you showed earlier you can use a name expression:
lcFileNameToErase = "C:\Program Files\SomeFolder\MyProgram.EXE"
ERASE ( lcFileNameToErase )
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
Next
Reply
Map
View

Click here to load this message in the networking platform