Solved

overwrite or ignore an existing file using WZZIP

Posted on 2004-07-31
7
583 Views
Last Modified: 2012-06-22
I have 04 foders that I want to zip into one folder
example:
wzzip  c:\backup\07302004\ClsTucUs07302004.zip  c:\backup\07302004\clsinc07302004  c:\backup\07302004\clsshare07302004  c:\backup\07302004\tuc07302004  c:\backup\07302004\users07302004

when I run this batch file the following error shows up:
warning "name in zip file repeated"

warninig " First Full name: c:\backup\07302004\clsshare07302004\cls.dbf"
warninig " First Full name: c:\backup\07302004\clsinc07302004\cls.dbf"

So, is there anyway to add a switch either to overwrite or ignore the cls.dbf file ???

Any help?

Thanks

0
Comment
Question by:Chuckbuchan
[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
  • 3
7 Comments
 

Author Comment

by:Chuckbuchan
ID: 11684411


I have 04 foders that I want to zip into one folder
example:
wzzip  c:\backup\07302004\ClsTucUs07302004.zip  c:\backup\07302004\clsinc07302004  c:\backup\07302004\clsshare07302004  c:\backup\07302004\tuc07302004  c:\backup\07302004\users07302004

when I run this batch file the following error shows up:
warning "name in zip file repeated"

warninig " First Full name: c:\backup\07302004\clsshare07302004\cls.dbf"
warninig " Second  Full name: c:\backup\07302004\clsinc07302004\cls.dbf"

So, is there anyway to add a switch either to overwrite or ignore the cls.dbf file ???

Any help?

Thanks
0
 
LVL 1

Accepted Solution

by:
samishra earned 300 total points
ID: 11686242
Instead of the above command try using the -p option, like this :

wzzip -p c:\backup\07302004\ClsTucUs07302004.zip  c:\backup\07302004\clsinc07302004  c:\backup\07302004\clsshare07302004  c:\backup\07302004\tuc07302004  c:\backup\07302004\users07302004

There is a difference in the case of the options. You should use the small p. There are more options that you can use like recursing subfolders, try -r

You can get a list of all these option in the wzzip help file. try the command wzzip /?

Hope I have been of some help.
0
 
LVL 1

Expert Comment

by:samishra
ID: 11897509
I do have objections. Why has the Delete request been made? I think we have provided valid responses which have surely helped the user. Or he would (and should) have posted otherwise. I think I should be awarded points.

Hope I was not too rude.. :-)
0
 
LVL 1

Expert Comment

by:samishra
ID: 11897686
Thank you, CetusMOD
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month11 days, 4 hours left to enroll

628 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