ColdPhreze
Programmer
- Apr 15, 2002
- 93
Ok. I'm writing a VB.NET app. One part of the app needs to be able to run another program. This other program must not be a part of the process tree. What I mean by this, is if I go into Task Manager and right click my program and then click "End Process Tree", only my program should end, not the other application I started.
So far I have tried the following, but all of them make the spawned program part of my program's Process Tree:
'Test 1
Dim explorerHwnd = FindWindow("", "Explorer")
Call ShellExecute(explorerHwnd, "Open", strPath + "\" _
+ AppFileName, "", "", SW_RESTORE)
'Test 2
Shell(strPath + "\" + AppFileName)
'Test 3
System.Diagnostics.Process.Start(strPath + "\" + _
AppFileName)
Can anyone help?
Thanks, KyferEz
Check out my DeVry Senior Project: and my CarPC Hardware: and my Spam-Fighter forums:
So far I have tried the following, but all of them make the spawned program part of my program's Process Tree:
'Test 1
Dim explorerHwnd = FindWindow("", "Explorer")
Call ShellExecute(explorerHwnd, "Open", strPath + "\" _
+ AppFileName, "", "", SW_RESTORE)
'Test 2
Shell(strPath + "\" + AppFileName)
'Test 3
System.Diagnostics.Process.Start(strPath + "\" + _
AppFileName)
Can anyone help?
Thanks, KyferEz
Check out my DeVry Senior Project: and my CarPC Hardware: and my Spam-Fighter forums: