Hello EYoung,
You can zip directly with the framework : http://msdn.microsoft.com/
Regards.
Main Topics
Browse All TopicsI am trying to figure out how to run WinZip from within my VB.net 2008 windows application. I am trying to zip up several files into one zip file. I have looked all over the internet and have tried many different methods but nothing works.
I have tried:
Call Shell("c:\program files\winzip\winzip32 -min -a C:\TTA.zip Sizes.txt Items.txt")
And:
Dim cmd As String
cmd = "C:\Program Files\Winzip\winzip32.exe"
Debug.Print(cmd)
And:
'Ceate a new process
Dim myProcess As Process = _
System.Diagnostics.Process
myProcess.Close()
I have also downloaded and tried wzzip (the command line addin) but I can't get it to work either.
Would appreciate some help. Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hello EYoung,
You can zip directly with the framework : http://msdn.microsoft.com/
Regards.
Well, nothing seems to happen. Its as if the command lines are read and skipped. I know I have rights to write to the folder. No error messages appear. Its as if the winzip line errors out quickly. I don't think there are any syntax errors as I have been over these lines many times very carefully. I think something else is going on. Thanks for your help.
instead of using winzip, why not use http://www.emoreau.com/Ent
Try this one with your method : http://stahlforce.com/dev/
>>Doesn't aspx require .Net Framework 3.5?
your question was refering VB.Net 2008 so I was assuming you were using the .Net framework 3.5!
I would use http://www.icsharpcode.net
Check the given url for command line parameters and use Sendkeys to send the command string to cmd.
http://www.memecode.com/do
Hope it will work for you
Also check this : http://www.winzip.com/prod
leakim971: When I execute the command from Start/Run, the command shows the Winzip dialog box prompting me to buy the product or use the evaluation product. When I execute the same command from a .bat file, nothing appears to happen. After I double click on the .bat file, there is a momentary delay (1-2 seconds), then nothing happens.
nishitcruise: Not sure I understand your suggestion. I have looked at the given url page and I think I am following the formats correctly. Additionally, I have downloaded and tried wzzip but have not been successful.
Please use this free simple tool : http://stahlforce.com/dev/
c:\zip C:\TTA.zip Sizes.txt Items.txt
Work great !
Can anyone create a one line .bat file that zips two or more files into one file? If I had a successful .bat file that worked, then I could call that from the .net program.
The contents of the .bat file would be something like this:
C:\Winzip\WINZIP32 -a c:\Zipped_Files.zip c:\Unzipped_File1.txt c:\Unzipped_File2.txt
Thanks
EYoung,
I have a batch running everyday with http://stahlforce.com/dev/
Regards.
Thanks to each of you. Using your suggestions and the following helped me to solve the issues.
1. I was using an evaluation copy of WinZip that kept displaying an irritating dialog box at startup. So I purchased the product and the box no longer shows up.
2. I was developing the VB.net application on my development computer, but running it on the production server. Because my development computer has different mapped drives than does the production server, there were multiple errors occurring. Once I realized that, I now only test/run on the production server and it runs correctly.
3. Although the production server runs Windows 2003 server with .Net Framework 2.0, my VB.net code needs .Net Framework 3.5. So I installed 3.5 and that removed more problems.
Thanks for all the help.
Business Accounts
Answer for Membership
by: EladlaPosted on 2009-10-06 at 16:53:45ID: 25511078
Can you give more details?
Do you get an error message?
What happens when you run these lines of code?