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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Scanner"-script for whole library on W2K - need help

Status
Not open for further replies.

DominikHerz

IS-IT--Management
Mar 15, 2002
1
DE
We need to scan a whole library (81 slots) with the scanner-command. Since this takes a really very long time on 8mm-tapes we want to write a script that automizes all the load- and unload-processes and scans in the actual tape between. The real problem is that &quot;scanner&quot; asks for the next tape or (q)uit after reading in one tape. How can I automize this manual keyboard entry &quot;<q> <enter>&quot; in a commandline script on windows (2k)? Following up i will show you how far we are yet:

1. Batchfile &quot;jb_scan.bat&quot;
for /l %%C in (1,1,81) do scan.bat %%C

2. Batchfile &quot;scan.bat&quot;
nsrjb -l -n -f \\.\Tape0 -S %1
scanner -i -q \\.\Tape0 < q-parse.dat
nsrjb -u -f \\.\Tape0

3. Parsing file &quot;q-parse.dat&quot;
# The only entry is the &quot;q&quot;
q

Yesterday we let this script run but the &quot;q&quot; was not used after scanning. I suppose it was something with the name of the parsing-file (the &quot;-&quot; was not correctly interpreted). We renamed the file to &quot;q_parse.dat&quot; and now the next process is running. If this should fail too, please, does anyone have an idea about that?

Greetz, Dominik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top