Home » Category » Microsoft Visual Basic

Microsoft Visual Basic: Ziping files with VB & Winzip

112| Sat, 10 Nov 2007 08:23:00 GMT| pedrovila| Comments (3)
Hi,

I need to zip some files using VB interacting with Winzip. I'm using the
Shell method but no zipped file is created. Does the Shell method supports
arguments, because the string I'm creating to run the command is C:\Program
Files\WinZip\wzzip c:\file.zip d:\source-file.zip

Can some one help me?

Thank you.

Pedro vila

Keywords & Tags: ziping, files, vb, winzip, microsoft, visual basic

URL: http://www.programmerbase.com/visual-basic/560604/
 
«« Prev - Next »» 3 helpful answers below.
Hi Pedro

Please check

http://www.programmersheaven.com/zone15/cat158/
http://www.zbottech.com/c/lb/14.htm

Ravi

"Pedro vila" <pedravil...comptab2b.com> wrote:
>
>Hi,
>
>I need to zip some files using VB interacting with Winzip. I'm using the
>Shell method but no zipped file is created. Does the Shell method supports
>arguments, because the string I'm creating to run the command is C:\Program
>Files\WinZip\wzzip c:\file.zip d:\source-file.zip
>
>Can some one help me?
>
>Thank you.
>
>Pedro vila

ravigurrapu | Sun, 11 Nov 2007 18:47:00 GMT |

Pedro,

> I need to zip some files using VB interacting with Winzip. I'm using the
> Shell method but no zipped file is created. Does the Shell method supports
> arguments, because the string I'm creating to run the command is
C:\Program
> Files\WinZip\wzzip c:\file.zip d:\source-file.zip

You might want to look at the freeware (with source) Zip code at
ftp://ftp.ruhr-uni-bochum.de/pub/Info-ZIP/Zip.html. They also have an unzip
version. A recent article in VBPJ used this code.

--
L.J. Johnson, Slightly Tilted Software
Microsoft MVP (Visual Basic)
LJJohnson...SlightlyTiltedSoftware.com or LJJohnson...mvps.org
<http://www.SlightlyTiltedSoftware.com>
Ask The NT Pro at <http://www.dev-archive.com/gethelp>

l_j_johnson | Sun, 11 Nov 2007 18:48:00 GMT |

A more complex (and flexible) method is to use a zip control to do the job.

Have a look at www.vbaccelerator.com for a couple of methods for zipping
and unzipping files in VB.

Ray Smith

Pedro vila <pedravil...comptab2b.com> wrote in message
news:3b98fdbd$1...news.dev-archive.com...
>
> Hi,
>
> I need to zip some files using VB interacting with Winzip. I'm using the
> Shell method but no zipped file is created. Does the Shell method supports
> arguments, because the string I'm creating to run the command is
C:\Program
> Files\WinZip\wzzip c:\file.zip d:\source-file.zip
>
> Can some one help me?
>
> Thank you.
>
> Pedro vila

raysmith | Sun, 11 Nov 2007 18:49:00 GMT |

Microsoft Visual Basic Hot Answers

Microsoft Visual Basic New questions

Microsoft Visual Basic Related Categories