Click here to Skip to main content
13,089,433 members (59,378 online)
Rate this:
Please Sign up or sign in to vote.
See more:

I'm running my module in Console. Part of the flow is compressing a Folder using WinZip. The compressing usually takes 3 to 7 minutes depending on the size of records(volume of records inside the folder) to compressed. In this Instance, the Console closes and Winzip opens (in minimized state) confusing the USer that might think that the program had exited and would again re process.

What I want to do is when compressing the folder, the Console will still be visible and will flash a message "Compressing Files, might take minutes, Please wait..."
and will close/exit/quit when the compression is done.

Please teach me how to do It?
Posted 15-Apr-12 14:59pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

First of all, why using WinZip? This way, you would make your functionality depending on this application.

Instead, if you can embed ZIP functionality in your code.

For working with ZIP, you can use #ziplib:[^].

Another option is using SevenZipSharp, a .NET wrapper of the famous 7-Zip:[^],[^].

Both ZIP libraries are open-source.

And even if you want with WinZip and use it in a console application, you should rather use command-line WinZip. It will solve your problem. Please see:[^].

Alan Tuscano 16-Apr-12 2:05am
Hi SA,

I'm using winzip...

What i want to know is how to make my console visible when Winzip compresses the files i've extracted from other folder.
SAKryukov 17-Apr-12 11:15am
If you use console-mode WinZip, it will use the same console, the one of the application started the child process of WinZip. This is the solution.
But I explained why using WinZip is not the best thing. It might not be installed on the user's computer, its path may not be known to your program, etc.
Alan Tuscano 25-Apr-12 0:00am
Endeed SA,

I've prefer using SharpZipLib, its just that my PM persists using winzip. Though I have create a fucntion using sharpziplib, I wanted to create another using Winzip. I'll just assign a flag in my config, so that i can select what function to call if winzip does not exist in the user's pc.

VJ Reddy 17-Apr-12 8:00am
Good advice. 5!
SAKryukov 17-Apr-12 11:15am
Thank you, VJ.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170813.1 | Last Updated 16 Apr 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100