Psychotron Posted June 13, 2014 Share Posted June 13, 2014 Hi all, Is there a way to launch a program only if it is not already running? Any help appreciated Thanks in advance Link to comment Share on other sites More sharing options...
Werty Posted June 13, 2014 Share Posted June 13, 2014 Check out _Singleton() in the helpfile. Some guy's script + some other guy's script = my script! Link to comment Share on other sites More sharing options...
ZombieKillz Posted June 13, 2014 Share Posted June 13, 2014 Psychotron, Check out ProcessExists in the help file. _Singleton() would be used if you just want one instance of your script running and ProcessExists would check if any processes are running (i.e. chrome.exe, notepad.exe, iexplore.exe). If ProcessExists("notepad.exe") Then MsgBox(16, "Error", "Only one notepad.exe process can run at a time.") Else ; run your code here Run("notepad.exe") EndIf Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now