home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 9
/
CD_ASCQ_09_1193.iso
/
maj
/
sstuff
/
stuff.bat
< prev
next >
Wrap
DOS Batch File
|
1993-01-06
|
2KB
|
112 lines
echo off
set PALETTE=/p1
kls %1
if errorlevel 5 set PALETTE=/p4
if errorlevel 1 goto begin
set PALETTE=/p4
:begin
kls %1
batbox demo.mnu /o %PALETTE%
if errorlevel 7 goto quit
if errorlevel 6 goto whenisit
if errorlevel 5 goto space
if errorlevel 4 goto kls
if errorlevel 3 goto dosver
if errorlevel 2 goto chkprn
:chkdrv
kls %1
chkdrv >stuff.tmp
box stuff.tmp
waitfor 5
goto begin
:chkprn
kls %1
batbox chkprn.mnu /o %PALETTE%
if errorlevel 4 goto begin
if errorlevel 3 goto LPT3
if errorlevel 2 goto LPT2
:LPT1
chkprn >stuff.tmp
goto show
:LPT2
chkprn lpt2 >stuff.tmp
goto show
:LPT3
chkprn lpt3 >stuff.tmp
goto show
:dosver
dosver > stuff.tmp
goto show
goto begin
:kls
kls %1
if errorlevel 5 goto herc
if errorlevel 4 goto mcga
if errorlevel 3 goto vga
if errorlevel 2 goto ega
if errorlevel 1 goto cga
:mda
echo You have a Monochrome Display Adapter (MDA)>stuff.tmp
goto show
:cga
echo You have a Color Graphics Adapter (CGA)>stuff.tmp
goto show
:ega
echo You have a Enhanced Graphics Adapter (EGA)>stuff.tmp
goto show
:vga
echo You have a Video Graphics Array (VGA)>stuff.tmp
goto show
:mcga
echo You have a Multi-Color Graphics Adapter (MCGA)>stuff.tmp
goto show
:herc
echo You have a Hercules Display Adapter>stuff.tmp
goto show
:space
kls %1
batbox space.mnu /o %PALETTE%
if errorlevel 4 goto begin
if errorlevel 3 goto space3
if errorlevel 2 goto space2
:space1
kls %1
input "Enter a file specification: " /MSPACE /r10 /l20
space %SPACE% /sk >stuff.tmp
goto show
:space2
kls %1
input "Enter a disk letter: " /MSPACE /r10 /l20 /d
space %SPACE%: /sk >stuff.tmp
goto show
:space3
kls %1
input "Enter a file specification: " /MSPACE /r10 /l20
input "Enter a disk letter: " /MSPACEB /r12 /l20 /d
space %SPACE% %SPACEB%: /sk >stuff.tmp
goto show
:whenisit
kls %1
input "Enter a date (dd/mm/yy) or a time (hh:mm): " /MWHEN /r10 /l10
kls %1
whenisit %WHEN%
if errorlevel 2 goto w2
if errorlevel 1 goto w1
:w0
echo It has not yet reached %WHEN%>stuff.tmp
goto show
:w1
echo It is now %WHEN%>stuff.tmp
goto show
:w2
echo It is now past %WHEN%>stuff.tmp
goto show
goto begin
:show
kls %1
box stuff.tmp
waitfor 6
goto begin
:quit