Thursday, 12 September 2013

Transferring output stream from the command promnt to a Visual Studio variable

Transferring output stream from the command promnt to a Visual Studio
variable

The problem is the following: In my C# code I call the schtasks command
like this :
Process batch = Process.Start("schtasks.exe", "/Query /FO CSV /Query /FO
CSV");
To get all Scheduled tasks.
Problem is I want the outout of that to be stored in a string variable. Do
you think a steam could be setup that would do this?

No comments:

Post a Comment