Try invoking cmd.exe with Process.Start and either passing it a .bat file that executes the desired commands or feeding it input via stdin. There's no real easier way to do this due to the complexity of executing multiple command line statements - you'll probably find that SET won't even work unless you're running a cmd session.

The total code necessary to do this is about 20-30 lines at most (I do it all the time), so you should be able to wrap it up in a function once and never worry about it again.

On 10/30/06, Kevien Lee <[EMAIL PROTECTED]> wrote:
Hi,guys
  I want to excute some command line to get CVS information.But use the Process.Start() is very burden .
 
Now,if i want to do like these:
 
set path=C:\Program Files\WinCvs\cvsnt
set CVSROOT=:pserver:test:[EMAIL PROTECTED]:2401:/test/CVS

CVS status -d "E:\Project\Test\Test\Document"
 
It could i use ironpython make it simple?
 
Thanks
Kevien

_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to