- listing the contents of a Compressed Folder (.zip file)
- extracting one or more files from a Compressed Folder
Can this be accomplished with the FileSystemObject?
Thanks in advance.
bt
> Would appreciate any help anyone can provide with:
>
> - listing the contents of a Compressed Folder (.zip file)
> - extracting one or more files from a Compressed Folder
>
> Can this be accomplished with the FileSystemObject?
Hi
You can't use the FileSystemObject for this I'm afraid.
You can use the Run method and shell out and call a command line based zip
program, or you can use an ActiveX component to do this from a script.
ZipGenius has a command line interface (freeware)
http://www.zipgenius.it/
WinZip Command Line Support Add-On
http://www.winzip.com/wzcline.htm
PowerArchiver has a command line version as well:
http://www.powerarchiver.com
and from a couple of previous posts:
From: Ross Presser (rpre...@NOSPAM.imtek.com.invalid)
Subject: Re: Programatically controlling file compression/zip
Newsgroups: microsoft.public.scripting.wsh
Date: 2003-06-25 13:20:53 PST
<quote>
Forget the dlls. Get zip.exe and unzip.exe from INFO-ZIP - command line
tools that do things like
zip foo.zip c:/path/files/*
unzip -d c:/path/files/ foo.zip
<http://www.info-zip.org/pub/infozip/UnZip.html#Win32>
</quote>
From: Atrax _ (anon...@devdex.com)
Subject: Re: zipping a file via vb and wsh
Newsgroups: microsoft.public.scripting.wsh
Date: 2002-12-10 19:36:08 PST
<quote>
There's a lightweight ZIP component I wrote at :
http://rtfm.atrax.co.uk/boards/asp.asp?action=viewPost&postID=295
I still; haven't got around to documenting it fully, though, and I
haven't released the 'full' version yet.
</quote>
Here is a couple of not free COM components:
Polar ZIP
http://www.polarsoftware.com/products/zip/index.html
DynaZIP:
http://www.innermedia.com/Products/Zip-compression/zip-compression.htm
--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter