Code: Select all
ProcessExists>NAME OF COMPILED SCRIPT.exe,res
The problem is of course logical failure, in that in order to check if it exists, it already exists. So the app will never start.
So I ended up having to create a "isrunning" file on start of run and then check for that file, (and then delete the file when the app is closed). If the file exists do not let the app run any further.
Of course the issue here is that if the app is force closed for some reason, or while I am testing within MS using debug stop, the "isrunning" file doesn't get deleted and therefore subsequent runs are not allowed...
Was just interested how you guys deal with this?