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
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
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
The output could be logged by appending the following to the command
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?
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
X-Zip is free - it's a COM object that can be used from VBScript or
anything else that can talk to COM.
Nice post.....
Bookmarks