interacting with a process

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello I was wondering if someone could point to me information on how to start an external process and how to interact with it

For example

In my C# program I want to start a process that will xcopy d:\*.* f:If the same file exist on f:\, xcopy will throw a prompt asking for y to continue
I would like the C# to on select occassion issue the y or n

This is just an example of the interaction of the process I am looking for. Writing a file copying script without using xcopy is pretty simple
I'm just looking for a way to interact with a process like that

Thank you.
 
Did into the Process class in System.Diagnositcs. From you you can
start a process and redirect the standard IO streams.

HTH,
 
Back
Top