Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Eject Batch File (needs tweaking)

Status
Not open for further replies.

JG5

MIS
Nov 18, 2001
171
US
Hello all. This may seem like an impractical approach to having a tape automatically eject, but hey, it works (kind of). I have several standalone networker servers in each of my divisions. The local IT contact just cant stand it that the tape doesn't automatically eject each night after backing up. So here's what I did: I created a simple batch file with the command nsrmm -j. The command works great if I actually type in Start, Run, cmd then nsrmm -j, but not when included in a .bat file. When I run the .bat file, I see the actual command window pop up and then the command, but it disappears very quickly without actually running the command. What I'd like to do is have the batch file run on a scheduled task every morning at say 6am or so. I've verified that the executable actually ejects the tape, I just can't get it to work in a simple .bat file. Any ideas?

Thanks.
 
Make sure that all varaibles are set properly.
For an example, please read the chapter about the backup command scipt in the Administrator's Guide.
 
That's a little more complex than I wanted to get, but I appreciate the help. I just simply want to run this command at a scheduled time to eject the tape.
 
In scheduler try this:

cmd /c &quot;<fully_pathed_command>&quot;

cmd /c &quot;C:\nsr\bin\nsrmm -j&quot;


HTH...Dale
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top