Discussion:
Using Windows Script that Zip Files using Winzip
(too old to reply)
M P
2007-11-05 07:55:57 UTC
Permalink
Is it possible? I need to zip files like in this scenario:

C:\Backup\File1.doc
C:\Backup\File2.doc
C:\Backup\File3.doc

Zip to

C:\Backup\Folder1\Files.zip
McKirahan
2007-11-05 11:35:40 UTC
Permalink
Post by M P
C:\Backup\File1.doc
C:\Backup\File2.doc
C:\Backup\File3.doc
Zip to
C:\Backup\Folder1\Files.zip
7-Zip (http://www.7-zip.org/) is a (free) scriptable file compression
utility.

The following could be run from the command line:
7za.exe a -tzip C:\Backup\Folder1\Files.zip C:\Backup\File?.doc

You could also create a text file containing a list of files
to zip and execute it this way:
7za.exe a -tzip C:\Backup\Folder1\Files.zip @C:\Backup\Files.txt
where C:\Backup\Files.txt would contain
C:\Backup\File1.doc
C:\Backup\File2.doc
C:\Backup\File3.doc
Post by M P
C:\Backup\Files.log
Alternatively, depending on your needs, you could
create a text file of the commands and run it via script.
M P
2007-11-05 13:58:49 UTC
Permalink
Post by McKirahan
Post by M P
C:\Backup\File1.doc
C:\Backup\File2.doc
C:\Backup\File3.doc
Zip to
C:\Backup\Folder1\Files.zip
7-Zip (http://www.7-zip.org/) is a (free) scriptable file compression
utility.
7za.exe a -tzip C:\Backup\Folder1\Files.zip C:\Backup\File?.doc
You could also create a text file containing a list of files
where C:\Backup\Files.txt would contain
C:\Backup\File1.doc
C:\Backup\File2.doc
C:\Backup\File3.doc
Post by M P
C:\Backup\Files.log
Alternatively, depending on your needs, you could
create a text file of the commands and run it via script.
Does 7zip kave advantage with winzip interms of file size to be
compressed?
McKirahan
2007-11-05 14:38:46 UTC
Permalink
Post by M P
Post by McKirahan
Post by M P
C:\Backup\File1.doc
C:\Backup\File2.doc
C:\Backup\File3.doc
Zip to
C:\Backup\Folder1\Files.zip
7-Zip (http://www.7-zip.org/) is a (free) scriptable file compression
utility.
[snip]
Post by M P
Does 7zip kave advantage with winzip interms of file size to be
compressed?
I have no idea.
Tom Lavedas
2007-11-05 17:27:59 UTC
Permalink
Post by McKirahan
Post by M P
Post by McKirahan
Post by M P
C:\Backup\File1.doc
C:\Backup\File2.doc
C:\Backup\File3.doc
Zip to
C:\Backup\Folder1\Files.zip
7-Zip (http://www.7-zip.org/) is a (free) scriptable file compression
utility.
[snip]
Post by M P
Does 7zip kave advantage with winzip interms of file size to be
compressed?
I have no idea.
If you have a registered copy of winzip, you can download a command
line driven add-on free and us it via the WScript.Shell's Run method.
See:

http://www.winzip.com/prodpagecl.htm

Tom Lavedas
===========
http://members.cox.net/tglbatch/wsh/
Chris M
2007-11-12 10:55:21 UTC
Permalink
Post by M P
C:\Backup\File1.doc
C:\Backup\File2.doc
C:\Backup\File3.doc
Zip to
C:\Backup\Folder1\Files.zip
X-Zip is free - it's a COM object that can be used from VBScript or
anything else that can talk to COM.

http://xstandard.com/en/documentation/xzip/
--
Chris.
Shubhangi123
2010-02-03 05:58:02 UTC
Permalink
Nice post.....
--
Shubhangi123
------------------------------------------------------------------------
Shubhangi123's Profile: http://forums.techarena.in/members/181030.htm
View this thread: http://forums.techarena.in/server-scripting/846248.htm

http://forums.techarena.in
Loading...