Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing EXE
Message
De
13/09/2000 12:13:10
 
 
À
12/09/2000 17:20:46
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Titre:
Divers
Thread ID:
00415565
Message ID:
00415901
Vues:
19
>Hi All,
>I have one EXE which is on my server. i have four client machine.
>
>But i want to run this exe by one client only. when the Exe is running from one client then no other client can run this exe.
>So what code i include in this.
>

You might investigate creating a shared synchronization object visisble in the network environment such as a named pipe or mailslot; before starting the app, check to see if the object exists, and if it doesn, don't start the app. If it doesn't exists, create it before starting the app to prevent others from starting the app until you're done. Mailslots in particular are relatively easy; they go away when the mailslot server shuts down.

No, I don't have code to give you to do this; try reading the entries in the MSDN library regarding synchronization objects, and mailslots in particular.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform