NT4 Erase Backup Tapes using 2 tape drives

Example scripts and tips (replaces Old Scripts & Tips archive)

Moderators: Dorian (MJT support), JRL, Phil Pendlebury

Post Reply
User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

NT4 Erase Backup Tapes using 2 tape drives

Post by Marcus Tettmar » Tue Nov 13, 2001 12:00 am

Contributed By: Ernie Jones [email protected]
Submitted On: 13/11/01

Remark>This will erase tapes in 2 or more tape drives
Remark>
Let>Name=0
Goto>StartErase
Label>NextTape
Let>Name=Name+1
Remark>If you have more than 2 tape drives, change this next line
If>Name=2,EndErase
Label>StartErase
Remark>Erase Tape
run program>ntbackup /tape:%Name%
WaitWindowOpen>Backup
Wait>10
Press ALT
Send Character/Text>oe
Release ALT
WaitWindowOpen>Erase Tape
Label>SendAnotherCtoTape
Send Character/Text>c
Wait>2
IfWindowOpen>Erase Tape,SendAnotherCtoTape
WaitWindowOpen>Erase Status
Label>WaitForEraseTape
Wait>2
Press Enter
IfWindowOpen>Erase Status,WaitForEraseTape
Wait>10
Press ALT
Send Character/Text>ox
Release ALT
WaitWindowClosed>Backup
Wait>10
Remark>Eject tape
run program>ntbackup eject /tape:%Name%
WaitWindowOpen>Backup
Label>WaitForEjectTape
Wait>2
IfWindowOpen>Backup,WaitForEjectTape
Wait>10
Goto>NextTape
Label>EndErase

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts