Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

format of zip command - producing 2 results..

Posted on 2014-12-19
1
Medium Priority
?
109 Views
Last Modified: 2014-12-28
Script1:
set Date=%Date:~-4%_%DATE:~4,2%_%DATE:~7,2%
"C:\Program Files\7-Zip\7z.exe" a -tzip E:\BACKUP\DOSPNSLiveDeploy\DOSPNSLiveDeploy_%Date% E:\Backup\DOSPNSLiveDeploy\DOSPNSLiveDeploy_backup_*.bak
~~~
Script2:
set Date=%Date:~-4%_%DATE:~4,2%_%DATE:~7,2%
"C:\Program Files\7-Zip\7z.exe" a -tzip E:\BACKUP\bnscapp\bnscapp_%Date% E:\Backup\bnscapp\bnscapp_backup_*.bak

The zip files produced by script2 are good and 'normal', ie I can double click on the zipped file and it opens up..
but with the file produced by scipt1, if I double click the zipped file, it tells me
"The compressed (zipped) Folder is invalid or corrupted."

the syntax is the same.. any thoughts?
0
Comment
Question by:25112
[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
1 Comment
 
LVL 57

Accepted Solution

by:
Bill Prew earned 2000 total points
ID: 40509737
Run the first script from a command window, and see what error or warning messages it displays when doing the ZIP.  The syntax looks okay as you have it, but perhaps it can't find any files, or is getting an access error, or a folder doesn't exist, etc.  7ZIP should give you feedback at the command prompt when you run it.

~bp
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Assume you have an outside contractor who comes in seasonally or once a week to do some work in your office, but you only want to give him access to the programs and files he needs and keep all other documents and programs private. Can you do this o…
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.
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…
Suggested Courses

688 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