all groups > dotnet academic > april 2004 >
You're in the

dotnet academic

group:

Given a process can I get the child or parent processes using C#?


Given a process can I get the child or parent processes using C#? marccruz
4/20/2004 7:01:05 PM
dotnet academic:
Given an instance of System.Diagnostics.Process, how can I get the parent process

o

Given an instance of System.Diagnostics.Process, how can I get the child processes

For example, I start a process which executes a script that starts a java program

System.Diagnostics.Process proc = System.Diagnostics.Process()
proc.StartInfo.FileName = "test.bat"
proc.Start()

test.bat contains
java testprogra

so proc.Start() starts "test.bat" which starts java. I want to end that specific java program given the process information of test.bat

Is there a way to do this in C# or .NET libraries

Re: Given a process can I get the child or parent processes using C#? laimis
4/21/2004 9:19:06 PM
[quoted text, click to view]
AddThis Social Bookmark Button