troubleshooting Question

VB.Net 2005 Want to run multiple instances of the program with differen process name ?

Avatar of mindwarpltd
mindwarpltd asked on
.NET ProgrammingVisual Basic.NET
6 Comments1 Solution691 ViewsLast Modified:
The other day I decided I would copy my solution and project file and create another copy of our program with a different process name. This works well and I have the two apps int he task scheduler to try and run every 15 minutes, so the two apps run and finish and restart all day long.

I use this code to ensure that each process only runs one at a time.

Dim APP As Process() = Process.GetProcessesByName(lstrProcessName)
If APP.Length > 1 Then
' exit app
End If

However, I'd now like to create a third process wit the same setup.

I'm just wondering if I can give the task scheduler a command line parameter and pass it into my exe to change the process name.

Is there any easier way that copying my project files ?

I'm using vb.net 2005
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros