home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
v
/
vd170r2.zip
/
VDSAMPLE.ZIP
/
VALIDATE.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-07-24
|
2KB
|
107 lines
@echo off
cls
Echo Validate.Bat - by Cabell Clarke
Echo Boot Factory BBS - FidoNet 1:264/19
Echo.
Echo Last Update: 29 May 92
Echo.
rem
rem This Batch file runs ValiDOOR from a Type 15 Exit
rem and shows examples of errorlevel processing
rem
rem
rem Male $ ValidOOR Begin Run >> %log%
rem cdd c:\qbbs\validoor
Vd
if errorlevel 15 goto E15
if errorlevel 14 goto E14
if errorlevel 13 goto E13
if errorlevel 12 goto E12
if errorlevel 11 goto E11
if errorlevel 10 goto E10
if errorlevel 9 goto E09
if errorlevel 8 goto E08
if errorlevel 7 goto E07
if errorlevel 6 goto E06
if errorlevel 5 goto E05
if errorlevel 4 goto E04
if errorlevel 3 goto E03
if errorlevel 2 goto E02
if errorlevel 1 goto E01
MALE + \ B/Validation Successful >> %LOG%
goto xit
:E15
Male * \ B/Sysop Aborted - F4 >> %log%
goto return
:E14
Male * \ B/User edited Illegal Number >> %log%
goto return
:E13
Male ! \ B/Invalid # Command Line Args >> %log%
goto return
:E12
Male ! \ B/Bad Key File >> %log%
goto Return
:E11
Male * \ B/Bad Number (in BadNumbr.Ctl File) >> %log%
goto Xit
:E10
Male * \ B/Voice Detection >> %log%
goto Xit
:E09
Male * \ B/Lost Carrier >> %log%
goto Xit
:E08
Male * \ B/Inactivity Timeout >> %log%
goto Xit
:E07
Male * \ B/LD Attempt not in TimeSlot >> %log%
goto Return
:E06
Male ! \ B/Could'nt find a FOSSIL Driver >> %log%
goto Xit
:E05
Male * \ B/User Abort at menu >> %log
Goto Return
:E04
Male * \ B/Duplicate Phone Number >> %log%
goto Return
:E03
Male ! \ B/Sysop Name missing in VD.CFG >> %log
goto Return
:E02
Male * \ B/User Not Validated >> %log%
goto Xit
:E01
Male ! \ B/File Missing >> %log%
goto Return
:xit
rem Dtr OFF VD can do this now
rem Dtr ON
AT Z
AT H1
:Return
Male \ \ B/End of Run >> %log%
Exit