Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check whether or not Exe is in use
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01381527
Message ID:
01381550
Vues:
57
>>>Using FOPEN('some.exe',1) to check whether or not the exe is in use will give accurate results if the folder is readwrite. If fopen() succeeds, then the exe is not in use. If fopen() fails, then the exe is in use.
>>>
>>>However, if the folder is readonly fopen() will always fail, even if it is not in use.
>>>
>>>Is there another way (preferably an API) that can tell whether or not the exe is in use, no matter by whom or by what process?
>>
>>Enumerate the running processes instead
>>http://www.news2news.com/vfp/?function=-1&example=164
>
>Will this also work for an EXE that is on the network and used by others on the network?

You could run the code server-side.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform