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
 
Hi Michael,

http://msdn.microsoft.com/library/d...stemDiagnosticsProcessStartInfoClassTopic.asp


http://msdn.microsoft.com/library/d...rfsystemdiagnosticsprocessclassstarttopic.asp
I hope this helps a little bit?

Cor
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.
 
Take a look at System.Diagnostics.Process - you should find what you need

(and don't ask why it's under "Diagnostics":-

Richard.
 
Back
Top