Wednesday, April 7, 2010
simple script to zip / rar it in command line
#########################################################
# Script to ZIP the file and NULL the previous Log file #
#########################################################
ZIPing the file
cd "D:\Program Files\WinZip\"
winzip32 -min -a -en -r C:\Backup1\rbb__%date:~7,2%-%date:~4,2%-%date:~10,4%.zip C:\Backup1\rbb.txt
cat /dev/null > C:\Backup1\rbb.txt
RARing the file
cd "C:\Program Files\WinRAR"
Rar a D:\rob__%date:~7,2%-%date:~4,2%-%date:~10,4%.rar D:\rob.txt
cat /dev/null > D:\robocopy.txt
Subscribe to:
Posts (Atom)