Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining if an exe is being used.
Message
De
11/10/2007 15:17:00
 
 
À
11/10/2007 15:08:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Divers
Thread ID:
01260393
Message ID:
01260401
Vues:
13
>Is there a way of determining if an exe is being used? The exe resides and is ran from a server.


You can use LLFF FOPEN() to see if you can open the file for write access.
nHandle = FOPEN("\\server\share\your.EXE",2)
If nHandle is -1, it's running.

Be sure to FCLOSE() it if you don't get an error or -1 on the FOPEN().
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform