![]() 9 Answers, only sam mousavi is answering your question directly, but noone's telling you what's wrong. ![]() I want to extract.rar files using cmd shell so I wrote this code: string commandLine = e c:downloadTestedU.rar c:download' ProcessStartInfo PSI = new ProcessStartInfo('cmd.exe') PSI.RedirectStandardInput = true PSI.RedirectStandardOutput = true PSI.RedirectStandardError = true PSI.UseShellExecute = false Process p = Process.Start(PSI) StreamWriter SW = p.StandardInput StreamReader SR = p.StandardOutput SW.WriteLine(commandLine) SW.Close The first time it worked fine, the second time it displayed nothing.
0 Comments
Leave a Reply. |