I'd like to be able to use Windows XP's built-in capability to create and
manipulate zipped folders from within VBA. My VBA program creates a folder
and places several files into this folder. Now I'd like to create a
Compressed (zipped) Folder from this unzipped folder. I can do this within
Windows Explorer by right-mouse-button clicking on the folder and selecting
Send To Compressed (zipped) Folder from the Pop-up menu.

But how does one do the equivalent under program control? I'd like to be
able to create a Compressed (zipped) Folder from within my VBA program.

Can this be done using Windows XP's built-in zip capability (involving the
zipfldr.dll capability)?

Thanks!
-Ron

Re: Create a Zip'ed Folder by Word

Word
Tue Jun 29 20:29:11 CDT 2004

G'day "N4709L" <N4709L@microsoft.com>,

A shell command could easily ZIP <somedir>

Use whatever your cmd line is for the app.

Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


N4709L reckoned:

>I'd like to be able to use Windows XP's built-in capability to create and
>manipulate zipped folders from within VBA. My VBA program creates a folder
>and places several files into this folder. Now I'd like to create a
>Compressed (zipped) Folder from this unzipped folder. I can do this within
>Windows Explorer by right-mouse-button clicking on the folder and selecting
>Send To Compressed (zipped) Folder from the Pop-up menu.
>
>But how does one do the equivalent under program control? I'd like to be
>able to create a Compressed (zipped) Folder from within my VBA program.
>
>Can this be done using Windows XP's built-in zip capability (involving the
>zipfldr.dll capability)?
>
>Thanks!
>-Ron
>