Winzip and VB code
I'm trying to unzip a zip file from my vb application.
1. Is there any way I can avoid a MS DOS screen coming up while unzipping files?
2. While the decompression is doing on the MS DOS prompt, the VB application executes the next line of code. So, we do not get a chance to see all the decompressed files. However, when we give a messagebox to hit any key, we are fine.
Is there any way to wait until the decompression is complete. I know that we can give a loop until decompression is found. But, we do not know how long the decompression will take.
Any ideas?
Thanks.
[620 byte] By [
rkbnair] at [2007-11-11 9:56:54]

# 1 Re: Winzip and VB code
You may want to use a zip library instead of a DOS based program:
http://www.vbaccelerator.com/home/VB/Code/Libraries/Compression/index.asp
The following should help you if you use a DOS program:
http://www.vbaccelerator.com/home/vb/code/libraries/Shell_Projects/Shell_And_Wait_For_Completion/article.asp
# 2 Re: Winzip and VB code
zlib.dll use it without dos will be good , if ur dos method is by shelling such a command so make it case 0 to don't show the black screen , moreover the return from shell is the ID of running programme, hence you can wait until the process ID finishes to know that the decomp. is finished ..
Amahdy at 2007-11-11 17:24:34 >
