0

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...

4
  • It is usually very helpful to post some code.
    – ChrisWue
    Apr 12, 2011 at 8:52
  • does it have to be zip? or are you just looking for compression?
    – albertjan
    Apr 12, 2011 at 9:28
  • Sorry for the trouble, managed to solve on my own, used a different way to access the zip commands:
    – Oean
    Apr 12, 2011 at 12:13
  • You should answer you own question. And accept it.
    – albertjan
    Apr 13, 2011 at 12:23

1 Answer 1

3

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

1
  • No, sorry I forgot to mention that in my current working environment 3rd party libraries are not an option!
    – Oean
    Apr 12, 2011 at 9:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.