Solved

format of zip command - producing 2 results..

Posted on 2014-12-19
1
101 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
1 Comment
 
LVL 51

Accepted Solution

by:
Bill Prew earned 500 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Image capture and Deploy method is consist on two phases. In our first phase we capture the image of windows from the PC in which Windows and others softwares are already installed. In second phase we deploy the created image on new PC in which we…
First some basics on Windows 7 Backup.  It has 2 components one is a file based backup which is stored in .zip files each zip is split at around 200 Megabytes and there is the Image Backup which is as the name implies a total image of the partition …
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

707 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

12 Experts available now in Live!

Get 1:1 Help Now