Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make an .exe runnable to one person at a time?
Message
De
31/08/2005 18:37:45
 
 
À
31/08/2005 17:52:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Divers
Thread ID:
01045697
Message ID:
01045700
Vues:
24
This message has been marked as the solution to the initial question of the thread.
>Basically I have an exe on a network drive and I want it to be run by only one person at a time. Now when you try to copy over an exe that is in use on another computer, the OS tells you so. So I figured there must be some command that would tell me if the program is in use anywhere else. I could put that command at the beginning of the program to and have it exit if the exe is being run by two people. Is any of this possible?

USE a table EXCLUSIVELY. If you can't open that table without error, then someone else is using the .EXE, so exit.
Fred
Microsoft Visual FoxPro MVP

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

Click here to load this message in the networking platform