Link to home
Start Free TrialLog in
Avatar of icuadmin
icuadmin

asked on

Prevent multiple instances of a single application from running

One of our users keeps opening the same application numerous times which causes him problems.  What I need is a way (program, application etc.) that will stop more than one instance of a particular, definable .exe from running and a method to prevent WIndows XP from hiding the application in the system tray.  If I can either diable the system tray auto hide feature or prevent a particular application from hiding and prevent more than one particular .exe from runningat a time, I'm in business!
Avatar of -CPG-
-CPG-

Change the users shortcut for running the application so it points to a batch file.  In the batch file include a kill command, probably a wait command to last for 5 seconds, then a command to launch the application.  

Then if he tries to open the application and it is already open the kill command will close it and launch a fresh instance of the application that he can see.
ASKER CERTIFIED SOLUTION
Avatar of icuadmin
icuadmin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
So do I get any points for recommending use of a script?  That's what you've done.
Avatar of icuadmin

ASKER

Fixed myself.