Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto Shut down
Message
 
À
31/01/2003 10:12:02
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00747667
Message ID:
00747671
Vues:
14
The solution depends on what you actually need. There could be different scenarios:
1. just make sure you can get exclusive access
2. force to close/kill application if it is running
3. prevent the usage of application while in process of copying,
etc...

If the #1 above is oK, then this might be enough:
lnfp=fopen("appfile.exe",2)
if lnfp<=0
* file is open somewhere
RETURN
else
=fclose(LNFP)
ENDIF
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform