Unzip files in C# (using winzip command line) <p>I'm trying to create program to unzip files. I need to use winzip command line. I try to send in argument command to cmd, but it didn't work, because cmd didn't know my command. When I pasted manually command, it works. </p> <pre><code>var process = new ProcessStartInfo("cmd.exe"); var command = "/c WZUNZIP -spassword" + "\""+ "C:\my path\file.zip" + "\"" + " " + "\"" + "C:\my path" + "\""; process.UseShellExecute = false; process.Arguments = command; Process.Start(process); </code></pre> <p>I tried to create .bat file and execute this file in my program, but like before it didn't work, when I executed it in my program and when start manually it works.</p> <pre><code>start cmd.exe /c WZUNZIP -spassword "C:\my path\file.zip" "C:\my path" var process = new ProcessStartInfo("cmd.exe", pathToBatch); Process.Start(process); </code></pre> <p>Mayby u know, the best way to execute .bat file in C#.</p> <p>I need to use winzip, because only it provides encoding for my files. I tried to use DotNetZip and during uziping program threw exception that it can't be unziped, because library can't operate this files.</p>