Discussion:
Launching a Process using Process.StartInfo
(too old to reply)
MVB
2006-02-08 19:46:48 UTC
Permalink
Hi,

I am trying to call a process from my c# application.
I want to execute certain number of arguments one after the other .

For e.g
In Diskpart.exe
I want to first execute "List Disk"
Then I want to execute "Select Disk x"

Is that possible to do programmatically(specially in c#)
I am aware of the concept called piping(writetopipe() in c++)
Is there anything similar in c# .NET

Help would be appreciated

Thanks.
unknown
2006-02-08 22:16:50 UTC
Permalink
Post by MVB
Hi,
I am trying to call a process from my c# application.
I want to execute certain number of arguments one after the other .
For e.g
In Diskpart.exe
I want to first execute "List Disk"
Then I want to execute "Select Disk x"
Is that possible to do programmatically(specially in c#)
I would try using the Process.RedirectStandardInput property (along with
Process.StandardInput).
--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Loading...