Solved

overwrite or ignore an existing file using WZZIP

Posted on 2004-07-31
7
571 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
  • 3
7 Comments
 

Author Comment

by:Chuckbuchan
Comment Utility


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
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you, CetusMOD
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

I was recently sitting at a desk at work with one of my colleagues and needed some information on my home computer. He watched as I turned on my home computer, established a remote session into it, got the information I needed and then shut it down …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now