HighTechTalks DotNet Forums  

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

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss Given a process can I get the child or parent processes using C#? in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
marccruz
 
Posts: n/a

Default Given a process can I get the child or parent processes using C#? - 04-20-2004 , 10:01 PM






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

Thank you

Reply With Quote
  #2  
Old   
laimis
 
Posts: n/a

Default Re: Given a process can I get the child or parent processes usingC#? - 04-22-2004 , 12:19 AM






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

The only way I know this could work with .NET is by using win API


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.