简体   繁体   中英

Using cmd through C# to zip and unzip files problems

I've been using C# to execute cmd commands centred around zipping and unzipping files through the system.diagnostics.process class but have been encountering some difficulties: while trying to zip or unzip some of the folders, the process does not complete the zip command and then stops to react to further commands. sometimes when that happens the zip files will appear after I have completely closed the program.

Please assit me thank you...

Detailed control over external processes can become very tricky. Is SharpZipLib not an option for you?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM