Re: eject command

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: webitect (webitect_at_discussions.microsoft.com)
Date: 08/08/04


Date: Sat, 7 Aug 2004 23:33:01 -0700

Hi Pegasus,

Thanks for the help. I really appreciate the script for the email. If yo
ucome across anything regarding the eject please let me know. Thanks.

Ray

"Pegasus (MVP)" wrote:

>
> "webitect" <webitect@discussions.microsoft.com> wrote in message
> news:A6C2D456-1CCD-4DC0-BF6C-352347D99BB4@microsoft.com...
> > Hi,
> >
> > Was wondering if anyone can help me figure out why my tape won't eject.
> The
> > following is my backup script that I use in scheduler to perform daily
> > backups.
> >
> > echo off
> > start /wait rsm.exe refresh /LF"daily backup"
> > c:\winnt\system32\ntbackup.exe backup systemstate c:\ d:\ "daily
> backup"
> > /v:no /r:no /rs:no /hc:on /m normal /j "daily.job" /l:f /p "4mm dds" /um
> > /hc:on
> > move "%path%\backup*.log" "d:\ntbackup\logs\%date%.log"
> > rsm.exe eject /PF"daily Backup - 1" /astart
> > exit
> >
> > I would also appreciate it if someone can point me to some documentations
> on
> > how to put in a command to have an error report mailed back to me or even
> > have the backup logs emailed to me...
> >
> > Any help will be greatly appreciated.
> >
> > Thank you.
> >
> > Ray
>
> I can't tell you why your tape won't eject - I would have used the same
> command.
>
> Here is a batch file you can use to mail the most recent backup report:
>
> @echo off
> 1 for /F "tokens=2 delims=/ " %%a in ('echo %date%') do set dom=%%a
> 2 if not exist d:\Logs\%dom% md d:\Logs\%dom%
> 3 set Loc=C:\Documents and Settings\config\Local Settings\Application
> Data\Microsoft\Windows NT\NTBackup\data
> 4 if exist "%temp%\Backup.log" del "%temp%\Backup.log"
> 5 echo F | xcopy /d "%Loc%\*.log" "%temp%\Backup.log"
> 6 type %temp%\Backup.log > "d:\Logs\%dom%\Backup.log"
>
> Line1: Create a variable for the day of the week
> Line2: Create a final folder for the backup report
> Line3: Create a variable that points to the location where ntbackup.exe
> drops its backup report. Set "config" to the correct account.
> Line5: Extract the most recent backup report.
> Line6: Convert unicode to straight ASCII, and store the report in its final
> location.
>
> You can now use any public domain mailer programs to send the report
> to yourself, e.g. sendmail, mailto, blat.
>
>
>