Joseph you r gr8. Now Its working perfectly. I've made a batch file using Winzip command line to backup our production web servers daily. & I've scheduled script to do backup operation daily at night.
Using SQL2000 autobackup & this batch file I'll also backup SQL DBs & then I'll sit back & do rest of my work.
The script is more & less like this:
@ echo off
cls
Echo ###############################################################
Echo ~~~~ Backup Script ~~~~
Echo -----------------------------------------------
Echo This script make zip files of locally hosted Applications. Features are:
Echo 1- Maximum Compression zips
Echo 2- Password protect the zips
Echo 3- Include Hidden and System Files
Echo 4- Create a Backup Folder with current date & move zips in that folder.
@ Echo .
Echo ##############################################################
for /f "tokens=1-4 delims=/ " %%i in ('date /t') do mkdir H:\%%j-%%k-%%l
for /f "tokens=1-4 delims=/ " %%i in ('date /t') do cd H:\%%j-%%k-%%l
net use w: /delete
net use x: /delete
net use y: /delete
net use w: \\server1\e$
net use x: \\server1\c$\inetpub\wwwroot
net use y: \\server2\c$\inetpub\wwwroot
Rem Application Server Backup
wzzip.exe -rp -whs -ex -s420 site1.zip x:\site1\
wzzip.exe -rp -whs -ex -s420 site2.zip x:\site2\
wzzip.exe -rp -whs -ex -s420 Bl.zip w:\Bl\
wzzip.exe -p -whs -ex -s420 UploadReport.zip w:\Uploads\*.doc
Rem server2 Backup
wzzip.exe -rp -whs -ex -s420 site3.zip \\server2\c$\Inetpub\wwwroot\site3\
net use w: /delete
net use x: /delete
net use y: /delete
Rem whs includes system and hidden files.
Rem 420 is Password
Rem ex for Max Compression
cls
Echo ################################################################################
Echo The backups has been made.
Echo ###############################################################
exit