Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete an EXE
Message
De
19/05/2011 03:46:05
 
 
À
19/05/2011 03:38:13
Issam Mansour
Jordan Business Machines
Amman, Jordanie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
01511088
Message ID:
01511091
Vues:
59
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform