how to execute shell command through c#


i have command line run c# executale. while it's running, i'd c# executable input on command line command. want because want know in command line commands called , results.

need fetch results.

commands c# executable generate may things from
cd ..
execute executable through
mono fetch.exe

hello mart,

you use process run cmd.exe in c# console application, redirect input , output setting these 2 properties true:

processstartinfo.redirectstandardinput property

processstartinfo.redirectstandardoutput property

sample code snippets provided in documents. it's executing commands in command line.


we trying better understand customer views on social support experience, participation in interview project appreciated if have time. helping make community forums great place.
click here participate survey.



Visual Studio Languages  ,  .NET Framework  >  Visual C#



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'