Click to See Complete Forum and Search --> : Process Class
jrlima
March 10th, 2005, 12:56 PM
Hi,
I'm using the Process class to start new processes, but it seems that the Start method only starts processes if they don't already exist. If the process exists, the method returns false.
How can I start 2 or more instances of the same application?
Thank you
J
ss_gurmeet
March 11th, 2005, 08:32 AM
Hi,
I m Confused why the multiple instance not running on ur pc. Coz its running on my pc. may be its useful for u.
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Process.Start("Notepad.exe")
EndSub
Best of Luck :thumb:
Regards
Gurmeet:wave:
Ajay Vijay
March 14th, 2005, 11:18 AM
Hi,
I'm using the Process class to start new processes, but it seems that the Start method only starts processes if they don't already exist. If the process exists, the method returns false.
How can I start 2 or more instances of the same application?
Thank you
JSome processes allows only one instance of them, for example Windows Media Player (wmplayer.exe). See, if this is the case with you. Starting 'notepad.exe' should work, as elaborated by code example (ss_gurmeet).
jrlima
March 14th, 2005, 11:42 AM
In the MSDN, all overloads of Process.Start() have :
"If the process is already running, no additional process resource is started. Instead, the existing process resource is reused and no new Process component is created"
If this is true, how can you create more then 1 process with the same name?
FoodBard
April 8th, 2005, 07:05 AM
you are confusing a process with a program
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.