Hi,
I have set of lines to be execute in command prompt,example
open venture.upload.akamai.com
abcdef
ghijklm
hash
binary
lcd "D:\testing"
cd "/26929/Vinoth New QC Folder/Testing/Test/"
prompt
mget "Eng Vs Aus 01-08-131_874.MP4"
mget "Eng Vs Aus 01-08-131_873.MP4"
quit
Currently,Iam creating text file and executing the file in command prompt using below code,now i want to write the result in console.
System.Diagnostics.ProcessStartInfo procStartInfo =
new System.Diagnostics.ProcessStartInfo("cmd", "/c " + command);
procStartInfo.WorkingDirectory = Application.StartupPath + "\\Temp";
procStartInfo.RedirectStandardInput = false;
procStartInfo.RedirectStandardOutput = true;
procStartInfo.UseShellExecute = false;
procStartInfo.CreateNoWindow = true;
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo = procStartInfo;
proc.Start();
string result = proc.StandardOutput.ReadToEnd();
Console.WriteLine(result);