1.

Solve : Backup Batch Problem?

Answer»

Hi all,
im making a batch file that backup ups my files into a zip file.
the problem is EVERY time i try to back it all up. the zip file gets cruptted.
heres my code. o and i got Vista
Code: [Select]@echo off
C:\>backuptest.zip
move backuptest.zip C:\Users\Owner\Documents
CLS
title Backup Files
echo Backing up files.......
echo Please wait.
copy C:\Users\Owner\Documents "C:\Users\Owner\Documents\backuptest.zip" /V /Y
ECHO Backup completed!
pause
exit
thanks in advance!I'm no expert on batch scripts but I can tell you why you get a "corrupted" zip file. You're not ZIPPING anything. All you're doing is COPYING the files to a new location and calling them backuptest.zip. In order to do what you want, you'll need a command line zip utility.
7-Zip got a command line version.Thanks Deerpark.No problem... if you can't get 7-zip to work just say so and I'll try and help you out.



Discussion

No Comment Found