Listing 2: SetupVars.cmd :: BEGIN CALLOUT A BEGIN COMMENT :: Define the computer-specific values. Set RSM_LIBRARY to the tape drive's :: name. Set RSM_REFRESH to the number of seconds to wait for the refresh. :: If you plan to use TapePrep.cmd, set RSM_POOL to the tape drive's media pool. END COMMENT Set RSM_LIBRARY= Set RSM_REFRESH= Set RSM_POOL= :: END CALLOUT A :: BEGIN CALLOUT B BEGIN COMMENT :: Define the post-backup behavior. To enable the behavior, change NO to YES. END COMMENT Set EJECT=NO Set MAILLOG=NO Set PRINTLOG=NO :: END CALLOUT B :: BEGIN CALLOUT C BEGIN COMMENT :: Define the email settings if you set MAILLOG to YES. Set SMTPSERVER :: to SMTP server's DNS name or IP address. Set SENDER to the sender's :: email address. Set RECIPIENTS to the recipients' email addresses. END COMMENT Set SMTPSERVER= Set SENDER= Set RECIPIENTS= :: END CALLOUT C BEGIN COMMENT :: Creates a date and time stamp in the format: dow yyyy-mm-dd hh:mm. END COMMENT Set DTSTAMP=%DATE:~0,3% %DATE:~10,4%-%DATE:~4,2%-% DATE:~7,2% %TIME:~0,5% BEGIN COMMENT :: Do not modify: Error constants END COMMENT Set ERR_NOT_FOUND=2 Set ERR_LIBRARY=6 Set ERR_PHYSICAL_MEDIA=7 Set ERR_PARTITION=8 Set ERR_LOGICAL_MEDIA=9 BEGIN COMMENT Do not modify: Path to NTBackup's Data directory. END COMMENT Set NTBACKUP_DATA=%USERPROFILE%\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\Data