We help IT Professionals succeed at work.

Eject a tape after running backup

sysval
sysval asked
on
I am running a scheduled backup using the AT command.
I would like to have the tape eject after running the daily backup.
(Seagate Scorpion Drive)

Here is an example of the command:

NTBACKUP BACKUP DS \\SERVERNAME IS \\SERVERNAME /T NORMAL
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2007
Commented:
I am not sure whether this is possible. It depends on the tape.
Is there an eject commad anywhere in the NTbackup program.

It may be easier to peogram this using a script to feed the mouse commands to the wondows interface.

 http://www.hiddensoft.com/AutoIt/   No auto-record - uses scripts
  http://www.zdnet.com/downloads/stories/info/0,,000C94,.html                 
http://hotfiles.zdnet.com/cgi-bin/texis/swlib/hotfiles/info.html?fcode=000VPA
http://download.cnet.com/downloads/0-10106-100-1572888.html?tag=st.dl.10001_103_1.lst.td
http://download.cnet.com/downloads/0-10101-100-907068.html?tag=st.dl.10001_103_3.lst.td
http://hotfiles.zdnet.com/cgi-bin/texis/swlib/hotfiles/info.html?fcode=000UNC
http://hotfiles.zdnet.com/cgi-bin/texis/swlib/hotfiles/info.html?fcode=000U5V
http://www.zdnet.com/downloads/stories/info/0,,000HVD,.html

http://www.mkssoftware.com/eval/.  unix like automation and script tools
-------------------------
http://www.zdnet.com/downloads/stories/info/0,,77503,.html
From: dbrunton   Date: 04/09/2001 02:58AM PST
  Yes, it is possible.  Do a search for WinCmd which is a script  language for Windows from Ziff Davis.

   Here is an example script.

                      "rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,@0,2"
                      delay (2000)
                      sendkeys ("{tab}")
                      delay (2000)
                      sendkeys ("%p")
                      sendkeys ("%s")
                      sendkeys ("%h")
                      sendkeys ("192.168.1.1")
                      sendkeys ("{tab}")
                      sendkeys (80)
                      sendkeys ("%c")
                      sendkeys ("192.168.1.1")
                      sendkeys ("{tab}")
                      sendkeys (80)
                      sendkeys ("{enter}")
                      sendkeys ("%a")
                      sendkeys ("{enter}")

                      Note that in this script where there is a delay indicated tht the CTRL key had to be held down to make
                      the script language work.  This script was called from a batch file.

                      wincmd inet.wcm
                      exit
--------------------------------------
Mouse automation
http://download.cnet.com/downloads/0-1461991-100-1549367.html?tag=st.dl.10001_103_5.lst.td
Win/Dos scripting
http://download.cnet.com/downloads/0-10106-100-902089.html?tag=st.dl.10001_103_5.lst.td
Scripting tool.
http://download.cnet.com/downloads/0-1461989-100-914047.html?tag=st.dl.10001_103_5.lst.td
------------------------
Phantom scripts and EXE files can be created
http://hotfiles.zdnet.com/cgi-bin/texis/swlib/hotfiles/info.html?fcode=00140E
---------------
I hope this helps !

Author

Commented:
Thanks for the great comment...
I figured it out second after posting the question...
It's so simple...

c:\winnt\system32\ntbackup.exe eject

Just add a second

Author

Commented:

Thanks for the great comment... Instead of deleting the question, I'd much rather give the points.

Thanks
Dave
CERTIFIED EXPERT
Top Expert 2007

Commented:
Thanks !.
I'm sure that this will be useful to someone in the future.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.