Multiple instances of executables?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Multiple instances of executables?

I want to schedule task in "Schedule tasks" that starts an app (build in
vb.net 2005) every 5 minutes. Every time the app starts i want to check if
this job with the same task name, task name is passed as an argument to the
app at start, is completed. If its not completed, just quit.

Schedule tasks:
==========
myApp.exe "TaskNameOne"
myApp.exe "TaskNameTwo"
myApp.exe "TaskNameThree"

How can i check if the "taskname" is already running?

Thanks in advance!
 
Hi Grundh,
Welcome to MSDN Newsgroup!

Based on my knowledge, you can use the following way as a workaround for
this issue:
When your application starts, you can write the CommandLine Argument to the
registry (under a specified registry path). And when the application quits,
remove the Command Line Argument from the registry. If we want to check
whether a "taskname" is already running, we can query this information from
the registry.

I hope the above information is helpful for you. Thanks and have a nice day!

Best Regards,

Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security

--------------------
 
Back
Top