PC Review


Reply
Thread Tools Rate Thread

Zipping or rar of files

 
 
Chris White
Guest
Posts: n/a
 
      29th Sep 2003
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
 
Reply With Quote
 
 
 
 
Ritchie
Guest
Posts: n/a
 
      29th Sep 2003
"Chris White" <(E-Mail Removed)> wrote in message news:24c401c386bb$f9e66c60$(E-Mail Removed)...
> 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=sc...R+wshshell.run

--
Ritchie, undo for mail



 
Reply With Quote
 
Ray at
Guest
Posts: n/a
 
      29th Sep 2003
Hi Chris,



For zipping from the command line, Winzip has a free command-line addon for
Winzip. http://www.winzip.com/wzcline.htm

You can just execute that in a bat file if you like. If you must execute it
in the Windows Scripting Host, see here:
http://msdn.microsoft.com/library/en...l/wsmthrun.asp

Ray at work

"Chris White" <(E-Mail Removed)> wrote in message
news:24c401c386bb$f9e66c60$(E-Mail Removed)...
> 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



 
Reply With Quote
 
Torgeir Bakken (MVP)
Guest
Posts: n/a
 
      29th Sep 2003
Chris White wrote:

> 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 ((E-Mail Removed))
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 _ ((E-Mail Removed))
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.a...ost&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/Z...ompression.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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Zipping files using VBA =?Utf-8?B?U3RldmU=?= Microsoft Access VBA Modules 1 24th Jun 2005 09:46 PM
Zipping files RJN Microsoft VB .NET 1 21st Jan 2005 06:31 PM
Zipping files together Ray Microsoft Access Macros 1 10th Jun 2004 10:25 PM
Zipping Files in XP? Carol2 Windows XP Performance 12 8th Jun 2004 03:45 AM
zipping files KK Windows XP New Users 2 15th Mar 2004 01:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:02 PM.