09-20-2011 12:35 PM
I have a scheduled task in window that would run an exe three times per day. This exe is not supposed to close when it runs. It should stay open (waiting at an event structure). The reason I have it scheduled to run three times per day is because I want to re-open the exe in case it is closed by someone.
If the exe is still open, and the scheduled task try to re-run it again, what happens? Does the exe re-run from the beginning again? It doesn't seem like a 2nd instance of the same exe opens.
Solved! Go to Solution.
09-20-2011 12:49 PM
Nothing happens if the exe is already running. In order to have multple instances of an executable running you need to place the key AllowMultipleInstances = TRUE in your application's .ini file.
09-20-2011 12:50 PM
from its ini file, add a line;
allowmultipleinstances=True
This should allow opening multiple instances of the same executable.
09-20-2011 11:09 PM
Good to know. I am just wanted confirm that nothing happen when a exe is running and a scheduled task try to start the same exe again. Thanks!