Zipping or rar of files

C

Chris White

I should clarify myself on the compressing files. I am
needing to take 24 files from each and compress them, zip
or rar them into a zip or rar file, etc. I need to do
this using VBscript or WHS. The other thing I guess is
there a way to call a command line or command prompt from
a VB script or WHS script that would allow you to call
upon a zip or rar program to zip or rar the files. Any
suggestions would be helpful

Thanks
Chris
 
R

Ritchie

Chris White said:
I should clarify myself on the compressing files. I am
needing to take 24 files from each and compress them, zip
or rar them into a zip or rar file, etc.

What's stopping you? Do you need suggestions as to what software
to use or how to use it?
I need to do this using VBscript or WHS.

I'd be surprised if you really HAD to.
The other thing I guess is
there a way to call a command line or command prompt from
a VB script or WHS script that would allow you to call
upon a zip or rar program to zip or rar the files.

Look at the Exec and Run methods. This query will net around
3000 examples:-
http://groups.google.com/groups?q=scripting.wsh+wshshell.exec+OR+wshshell.run
 
T

Torgeir Bakken (MVP)

Chris said:
I should clarify myself on the compressing files. I am
needing to take 24 files from each and compress them, zip
or rar them into a zip or rar file, etc. I need to do
this using VBscript or WHS. The other thing I guess is
there a way to call a command line or command prompt from
a VB script or WHS script that would allow you to call
upon a zip or rar program to zip or rar the files. Any
suggestions would be helpful

Hi

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.


Command line:

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


From: Ross Presser ([email protected])
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>


Using a COM component:


From: Atrax _ ([email protected])
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top