Solved

Winzip Command Line Add Comment

Posted on 2009-05-12
5
1,158 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 31

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 31

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

A while back when OPSMGR 2012 was released we were very excited about getting it into our environment and upgrading our 2007 implementation,  we started our planning and we then proceeded with our implementation. All went as planned & our system …
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

717 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