470,810 Members | 1,433 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,810 developers. It's quick & easy.

Launching a Process using Process.StartInfo

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 am aware of the concept called piping(writetopipe() in c++)
Is there anything similar in c# .NET

Help would be appreciated

Thanks.
Feb 8 '06 #1
1 1255
MVB wrote:
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
Feb 8 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Drew Lettington | last post: by
1 post views Thread by R.A. | last post: by
2 posts views Thread by James N | last post: by
reply views Thread by Scott Zabolotzky | last post: by
3 posts views Thread by Michael Moreno | last post: by
reply views Thread by spamfilteraccount | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.