Requires Free Membership to View
This is really a Windows question and I am far from a Windows GURU but I'll give it a shot.
My quick advice: Forget VBS and the scripting host and use batch files. You can indeed have variables in a batch file. Here is the script I use (and run using the "Scheduled Activities" GUI in 2000/XP) to back up my registry to a new file every day. (Actually, it backs it up to alternating names. One day is uses .1, the next is uses .2 and so on). You should be able to modify this script to do what you want. The last two lines are used to zip up the backup of the registry file.
set DAY=%DATE:~0,3%
if %DAY%==Sun set BIT=1
if %DAY%==Mon set BIT=2
if %DAY%==Tue set BIT=1
if %DAY%==Wed set BIT=2
if %DAY%==Thu set BIT=1
if %DAY%==Fri set BIT=2
if %DAY%==Sat set BIT=1
ntbackup backup systemstate /J "Backup Job %BIT%" /F "C:REG-%BIT%.bkf"
if exist C:REG-%BIT%.ZIP DEL C:REG-%BIT%.ZIP
C:Progra~1OntrackZipMagiczmzip -e4 -m C:REG-%BIT%.ZIP C:REG-%BIT%.bkf
Editor's note: Do you agree with this expert's response? If you have more to share, post it in one of our .bphAaR2qhqA^0@/searchstorage>discussion forums.
This was first published in May 2002
Storage Management Strategies for the CIO

Join the conversationComment
Share
Comments
Results
Contribute to the conversation