While trying to extract zip files i get the error
c:/path/name.zip is not RAR archive
No files to extract
my code is
p.StartInfo.FileName = @"C:\Program Files\WinRAR\rar.exe";
p.StartInfo.Arguments = string.Format("x -o- {2} \"{0}\" * \"{1}\"\\ ",
szFN,
outFolder,
passWord == null ? "" : string.Format("-p\"{0}\"", passWord));
The GUI version can extract zip and 7z files. Why cant this? How can i extract zip and 7z files? (NOTE: I have different source code for 7zip. I guess i can merge the two and only use the above when the file has a rar extension. But i dont like that solution)