home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Share Gallery 1
/
share_gal_1.zip
/
share_gal_1
/
UT
/
UT214.ZIP
/
SEBFU40.LZH
/
DEMO.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-10-03
|
4KB
|
214 lines
ECHO off
ENVSIZE VAR /R
SETERR=%VAR%
IF ERRORLEVEL 40 GOTO START
ECHO This Demo Requires at least 40 bytes of free Environment Space
ECHO We suggest you use the following line in your CONFIG.SYS file
ECHO
ECHO SHELL=C:\COMMAND.COM /P /E:512
ECHO
ECHO The '/P' is a must, the number after 'E:' may be any number from
ECHO 128 (DOS default is 160) thru 32,000 (no comma). You may also specify
ECHO a different drive (after the 'SHELL=') and shell, such as 4DOS.
ECHO
goto xit
:start
TC
window 1 1 25 80 /F7 /B1
locate 3 12
bigltr SCANLON
locate 14 1
bigltr ENTRPRISES
wait /S2
:uphalf1
for %%f in (1 1 1 1 1 1 1 1 1 1 1 1) do window 1 1 25 80 /F7 /B1 /L1
:present
locate 15 8
bigltr PRESENTS
wait /S2
:uphalf2
for %%f in (1 1 1 1 1 1 1 1 1 1 1 1) do window 1 1 25 80 /B4 /F15 /L1
:presnt2
locate 15 4
bigltr S E B F U
wait /S2
:downhlf1
for %%f in (1 1 1 1 1 1 1 1 1 1 1 1 1) do window 1 1 25 80 /f0 /b4 /L1 /D1
:pow1
locate 2 8
bigltr POWERFUL
wait /S2
WINDOW 9 1 25 80 /F0 /B7
locate 10 1
bigltr BATCH FILE
WINDOW 18 1 25 80 /F0 /B1
locate 18 4
bigltr UTILITIES
wait /S3
rem set add=
:part2
window 1 1 25 80 /b1 /f7
window 1 1 1 80 /b4 /f14
LOCATE 1 10
write Scanlon Enterprises SEBFU Version 4.0 (C) 1989,1990,1991
window 4 6 24 76 /b4 /f15
locate 4 6
box /l19 /w69
set ind=am
wtime /H /VHR
for %%f in (1 2 3 4 5 6 7 8 9 10 11 12) do if %hr%==%%f goto smin
set ind=pm
:mkpm
math /Vhr /-12
:smin
wtime /M /VMIN
locate 5 8
write The System Time is : %hr%:%min% %ind%
locate 6 8
write The System Date is :
SET IND=
SET MIN=
SET HR=
td /D6 40
set tst=doesn't support
KBTEST
if errorlevel 1 set tst=supports
locate 7 8
write System Bios %tst% the 101 type keyboard
set tst=is not
cdck
if errorlevel 1 set tst=is
locate 8 8
write The CD-ROM driver %tst% installed
set tst=is not
detansi
if errorlevel 1 set tst=is
locate 9 8
write The ANSI driver %tst% installed
set tst=
drvck c:
if not errorlevel 1 goto noc
dfree C: SIZE /M
locate 10 8
write There are %size% Megabytes available on drive C:
goto dlst
:noc
locate 10 8
write Drive C: does not exist
:dlst
set size=
drvlst DRIVES
locate 11 8
write Drives "%drives%" are available
set drives=
envsize SIZE
locate 12 8
write The DOS environment has %SIZE% bytes
set size=
envsize SIZE /R
locate 13 8
write The DOS environment has %SIZE% bytes remaining
set size=
GMEM /V
locate 14 8
WRITE Your system has %RAM% conventional ram
SET RAM=
GMEM /V /R
LOCATE 15 8
write Your system has %RAM% Bytes remaining
SET RAM=
gdir
LOCATE 16 8
write The current path is %dir%
set dir=
gdrive
if errorlevel 0 set drv=A
if errorlevel 1 set drv=B
if errorlevel 2 set drv=C
if errorlevel 3 set drv=D
if errorlevel 4 set drv=E
if errorlevel 5 set drv=F
LOCATE 17 8
write The current drive is %drv%:
set drv=
getver V
write /r18/C8,The current DOS version is %VER%
set VER=
gsmode
if errorlevel 8 goto graph
if errorlevel 7 goto mono
if errorlevel 4 goto graph
if errorlevel 3 goto cgac
if errorlevel 2 goto cgam
if errorlevel 1 goto cga4c
LOCATE 18 8
write Your system is in 40x25 black & white
goto lim
:graph
LOCATE 18 8
write Your system is in graphics mode
goto lim
:mono
LOCATE 18 8
write Your system is in monochrome mode
goto lim
:cgac
LOCATE 18 8
write Your system is in 25x80 CGA color mode
goto lim
:cgam
LOCATE 18 8
write Your system is in 25x80 CGA black & white mode
goto lim
:cga4c
LOCATE 18 8
write Your system is in 25x40 color mode
:lim
limck
if errorlevel 0 set lim=is not
if errorlevel 1 set lim=is
LOCATE 19 8
write The expanded memory driver %lim% installed
mouseck
if errorlevel 0 set lim=is not
if errorlevel 1 set lim=is
LOCATE 20 8
write The mouse driver %lim% installed
set lim=
page
for %%f in (0 1 2 3 4 5 6 7 8 9) do if errorlevel %%f set pg=%%f
LOCATE 18 50
write video page %pg%
set pg=
xmsck
if errorlevel 0 set ck=is not
if errorlevel 1 set ck=is
LOCATE 21 8
write The extended memory manager %ck% installed
set ck=
LOCATE 23 8
write Press [ENTER] to continue
BEEP
TC
CR
:part3a
cls
locate 1 1
copy msg1 con>nul
:keyw1
KSTAT
if errorlevel 1 goto part3
wait /S2
locate 1 1
invert
KSTAT
if errorlevel 1 goto part3
wait /S2
goto keyw1
:part3
clrkey
:xit
set var=
CURSOR
CLS