Category : A Collection of Games for DOS and Windows
Archive   : SLIST_4.ZIP
Filename : SLIST.BAT

 
Output of file : SLIST.BAT contained in archive : SLIST_4.ZIP

@echo off
if not exist ASK.COM goto nothere
:location
if exist LOCATION.LST echo Do you want to print a Location Report (LOCATION.LST) before proceeding? (Y/n)
if exist LOCATION.LST ASK.COM
if not exist LOCATION.LST goto next
if errorlevel 2 goto printloc
if errorlevel 1 goto printloc
if errorlevel 0 goto next
:printloc
print LOCATION.LST
echo Wait for printer to finish before continuing.
pause
:next
echo Do you want to run Switchlist? (Y/n)
ASK.COM
if errorlevel 2 goto main
if errorlevel 1 goto main
if errorlevel 0 goto printer
:main
slist4.exe
if exist CARINFO.BK3 goto all
if exist CARINFO.BK2 goto two
if exist CARINFO.BK1 goto one
goto none
:all
del CARINFO.BK3
:two
ren CARINFO.BK2 CARINFO.BK3
:one
ren CARINFO.BK1 CARINFO.BK2
:none
copy CARINFO.DAT CARINFO.BK1
:printer
echo Do you want to print the Waybills (WAYBILLS.LST)? (Y/n)
ASK.COM
if errorlevel 2 goto printway
if errorlevel 1 goto printway
if errorlevel 0 goto trainlst
:printway
print WAYBILLS.LST
:trainlst
echo Warning!
echo The Train Lists are 95 characters wide. Set your printer for 12 or more cpi.
echo If it is set for 10 cpi (the default) you may lose some text.
echo Do you want to print the Train Lists (TRAIN.LST)? (Y/n)
ASK.COM
if errorlevel 2 goto printtrn
if errorlevel 1 goto printtrn
if errorlevel 0 goto end
:printtrn
print TRAIN.LST
goto end
:nothere
echo ASK.COM is not in the same directory as SLIST.BAT.
echo Please move it and try again.
:end