Let's say I have a Windows Console executable MyApp.exe
It can take different command line parameters and depending on parameters can perform different functions.
MyApp.exe /1
will execute Function1 that takes 30 minutes to complete
MyApp.exe /2
will execute Function2 that takes 20 minutes to complete
I then configure MyApp.exe /1
in Windows Task Scheduler to run daily at 2PM. I specify "Do Not Start a new Instance" (default value) in Task Settings.
I then configure MyApp.exe /2
(executable is at the same location as above) in Windows Task Scheduler to run daily at 2:10PM. I specify "Do Not Start a new Instance" (default value) in Task Settings.
Will MyApp.exe /2
execute? Is "Do Not Start a new Instance" truly per task (in which case I expect MyApp.exe /2
to execute) or per process (in which case I expect MyApp.exe /2
not to execute)?