[IronPython] No use Process.Start() , How to execute these command line?

Kevin Gadd kevin.gadd at gmail.com
Wed Nov 1 17:26:11 PST 2006


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 <ironpythonster at gmail.com> 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:test123 at 192.168.0.4:2401:/test/CVS
>
> CVS status -d "E:\Project\Test\Test\Document"
>
> It could i use ironpython make it simple?
>
> Thanks
> Kevien
>
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20061101/63a8653a/attachment.html


More information about the users mailing list