LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Runing the same EXE multiple of times

Solved!
Go to solution

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.  

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 4
(5,633 Views)
Solution
Accepted by topic author jyang72211

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.

Message 2 of 4
(5,626 Views)

from its ini file, add a line;

 

allowmultipleinstances=True

 

This should allow opening multiple instances of the same executable.

Message 3 of 4
(5,625 Views)

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!

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 4 of 4
(5,608 Views)