Solved

Winzip Command Line Add Comment

Posted on 2009-05-12
5
1,119 Views
Last Modified: 2013-12-01
I want to add a comment to a zip file, using the command line interfact to Winzip (wzzip).  The docs show an example of:

wzzip -c d:\temp\test.zip

The problem is that I don't see how one can add the comment directly from the command line.  If I put text in quotes after the -c parameter, I get an error.  How is this supposed to work?
0
Comment
Question by:exclamationsoft
  • 2
  • 2
5 Comments
 
LVL 30

Expert Comment

by:Wayne Barron
ID: 24363919
try this

C:\Program Files\WinZip>d:\Zippers\test.zip -c hello world, I have arrived

(Substitute your directory structure, for some reason mine will not run unless I do it like this.)

Carrzkiss
0
 
LVL 30

Expert Comment

by:Wayne Barron
ID: 24363995
go it
wzzip d:\temp\test.zip -c

This will involke the [New Comment for....]
Then type in your inforamtion and press enter.
And the file is updated. (Though I do not see it personally myself in the file.
There is no new comment, but it states that it is [Updating Zip file]

hth
Carrzkiss
0
 
LVL 8

Expert Comment

by:thetmanvn
ID: 24364030
c:\Program Files\WinZip>WZZIP c:\test.zip -c
WinZip(R) Command Line Support Add-On Version 3.0 (Build 8252)
Copyright (c) 1991-2008 WinZip International LLC - All Rights Reserved

New comment for a.txt:
 New Comment

Updating Zip file c:\test.zip

c:\Program Files\WinZip>
0
 
LVL 2

Author Comment

by:exclamationsoft
ID: 24364140
What I'm really looking for is adding a comment, from the command line.  I don't want the Winzip window to open at all since this is for an automated process.
 1. wzzip d:\temp\test.zip -c
Opens the Winzip window
2. :\Program Files\WinZip>WZZIP c:\test.zip -c
Prompts for a comment from the command line
These solutions are fine, but I just want to have the comment ready to go and in a batch file for automation.
 
0
 
LVL 2

Accepted Solution

by:
exclamationsoft earned 0 total points
ID: 24365058
Direct from WinZip support:
...Please note that the -c switch will add file specific comments while the -z switch will add a Zip file level comment. The former is only visible if one views the detailed properties of a Zip file (Actions, Test, and check the box) while the latter can be easily viewed when one opens a Zip file with the user interface.
 
If you, then, use a command line of wzzip -z d:\temp\test.zip, the command prompt would then require you to input your comment...

0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is a common problem that often server suffers from the lack of space on system volume. Old servers or new ones from vendors come with preformatted small volume - 5-6GB in total and after installing updates or applications the free space on system…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question