home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
utility
/
tjutil14.zip
/
DEMO.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-03-15
|
7KB
|
279 lines
@echo off
rem ***************************** (c) Copyright Torbjörn Johansson 1992-93 ****
rem * *
rem * Demoprogram for the utilities from Torbjörn JOHANSSON, (c) 1992-93 *
rem * Ruthenenweg 7, A-8770 St. Michael, Austria, 03843-27772 *
rem * *
rem * CursOff, CursOn, KbufSize, GotoXY, AskBar, MouseAsk, ReBoot, *
rem * TextCol & ClsX *
rem * *
rem ***************************************************************************
rem
cursoff
clsx 4
textcol /t=13
middle ┌────────────────────────────────────────┐ 6
middle │________________________________________│
middle └────────────────────────────────────────┘
textcol /t=9
middle Demo_for_TJ's_Utilities___-_KbufSize_- 7
gotoxy 1 11
kbufsize
gotoxy 1 1
textcol
pause
rem ------------------------------------------------------------------------
:demo1
clsx 7
textcol /b=7 /t=0
gotoxy 1 1
echo █
echo │
echo └────── Move the mouse to this position for demo of the screenblankeffect!
textcol /t=15 /b=7
middle ┌─────────────────────────────────────────┐ 6
middle │_________________________________________│
middle └─────────────────────────────────────────┘
textcol /b=7 /t=11
middle Demo_for_TJ's_Utilities__-_MouseAsk_- 7
gotoxy 23 11
echo This is Menu nr. 1
gotoxy 23 12
echo This is Menu nr. 2
gotoxy 23 13
echo This is (A)nother posibillity
gotoxy 23 14
echo Or you can write it this way: (B)
gotoxy 23 15
echo 9. Or you can select here for nine.
gotoxy 9 20
rem
textcol /b=7 /t=1
Mouseask Click_on_the_screen_or_on_the_Keyboard_1,_2,_a/A,_b/B_or_9._ 12ab9
rem
rem
rem Depending on the peculiar way that DOS works, you have to compare
rem the ERRORLEVEL in invese order (it doesn't compare 'equal', it
rem compares 'equal or bigger'.
rem
rem
cls
if errorlevel = 6 goto error1 rem (-Ctrl Break-)
if errorlevel = 5 goto p9
if errorlevel = 4 goto pB
if errorlevel = 3 goto pA
if errorlevel = 2 goto p2
if errorlevel = 1 goto p1
goto error1
goto end1
:p1
cursoff
textcol /t=15 /b=7
middle ┌────────────────┐ 12
middle │________________│
middle └────────────────┘
textcol /t=15 /b=1 /blink
middle _You_tipped_1_ 13
goto end1
:p2
cursoff
textcol /t=15 /b=7
middle ┌────────────────┐ 12
middle │________________│
middle └────────────────┘
textcol /t=15 /b=1 /blink
middle _You_tipped_2_ 13
goto end1
:pA
cursoff
textcol /t=15 /b=7
middle ┌────────────────┐ 12
middle │________________│
middle └────────────────┘
textcol /t=15 /b=1 /blink
middle _You_tipped_A_ 13
goto end1
:pB
cursoff
textcol /t=15 /b=7
middle ┌────────────────┐ 12
middle │________________│
middle └────────────────┘
textcol /t=15 /b=1 /blink
middle _You_tipped_B_ 13
goto end1
:p9
cursoff
textcol /t=15 /b=7
middle ┌────────────────┐ 12
middle │________________│
middle └────────────────┘
textcol /t=15 /b=1 /blink
middle _You_tipped_9_ 13
:end1
textcol /t=15 /b=7
gotoxy 1 1
pause
goto demo2
:error1
gotoxy 25 13
echo Some error occured
rem ---------------------------------------------------------------------------
:demo2
clsx 5
textcol
cursoff
gotoxy 1 25
echo.
echo.
echo.
textcol /t=15 /b=5
middle ┌─────────────────────────────────────┐ 6
middle │_____________________________________│
middle └─────────────────────────────────────┘
textcol /b=5 /t=11
gotoxy 1 1
echo █
echo │
echo └────── Move the mouse to this position for demo of the screenblankeffect!
gotoxy 7 19
echo Move around with the mouse or the arrowkeys, select with the left
gotoxy 7 20
echo mousebutton or the [RETURN]-key.
textcol /b=5 /t=9
middle Demo_for_TJ's_Utilities__-_AskBar_- 7
textcol /b=4 /t=15
gotoxy 31 11
echo This is row 11
gotoxy 31 12
echo This is row 12
gotoxy 31 13
echo This is row 13
gotoxy 31 14
echo This is row 14
gotoxy 31 16
echo This is row 16
rem
AskBar /s=30 /e=47 11 12 13 14 16
rem
rem
rem Depending on the peculiar way that DOS works, you have to compare
rem the ERRORLEVEL in invese order (it doesn't compare 'equal', it
rem compares 'equal or bigger'.
rem
rem
if errorlevel = 17 goto error2 rem (-Ctrl Break-)
if errorlevel = 16 goto p16
if errorlevel = 14 goto p14
if errorlevel = 13 goto p13
if errorlevel = 12 goto p12
if errorlevel = 11 goto p11
goto error2
goto end3
:p11
cursoff
clsx 6
textcol /t=4 /b=6
middle ┌─────────────────────────┐ 12
middle │_________________________│
middle └─────────────────────────┘
middle You_have_choosen_row_11 13
goto end2
:p12
cursoff
clsx 6
textcol /t=4 /b=6
middle ┌─────────────────────────┐ 12
middle │_________________________│
middle └─────────────────────────┘
middle You_have_choosen_row_12 13
goto end2
:p13
cursoff
clsx 6
textcol /t=4 /b=6
middle ┌─────────────────────────┐ 12
middle │_________________________│
middle └─────────────────────────┘
middle You_have_choosen_row_13 13
goto end2
:p14
cursoff
clsx 6
textcol /t=4 /b=6
middle ┌─────────────────────────┐ 12
middle │_________________________│
middle └─────────────────────────┘
middle You_have_choosen_row_14 13
goto end2
:p16
cursoff
clsx 6
textcol /t=4 /b=6
middle ┌─────────────────────────┐ 12
middle │_________________________│
middle └─────────────────────────┘
middle You_have_choosen_row_16 13
:end2
gotoxy 1 1
pause
goto demo3
:error2
gotoxy 25 13
echo Some error occured
rem ---------------------------------------------------------------------------
:demo3
cls
textcol
gotoxy 1 25
echo.
echo.
echo.
cursoff
textcol /t=15 /b=6
middle ┌──────────────────────────────────────────────┐ 6
middle │______________________________________________│
middle └──────────────────────────────────────────────┘
textcol /b=6 /t=4
middle Demo_for_TJ's_Utilities__-_AskBar_&_ReBoot_- 7
middle End_demo 15
middle End_demo_and_boot_computer 17
rem
AskBar /s=23 /e=57 15 17
rem
rem
rem Depending on the peculiar way that DOS works, you have to compare
rem the ERRORLEVEL in invese order (it doesn't compare 'equal', it
rem compares 'equal or bigger'.
rem
rem
cls
if errorlevel = 18 goto error3 rem (-Ctrl Break-)
if errorlevel = 17 goto p17
if errorlevel = 15 goto p15
goto error3
:p17
reboot
goto error3 rem (if Error)
:p15
goto end
:error3
gotoxy 25 11
echo Some error occured
:end
cls
textcol /b=4 /t=11
middle ┌──────────────────────────────────────────────┐ 10
middle │______________________________________________│
middle └──────────────────────────────────────────────┘
middle Demo_of_TJ's_Utilities_ended. 11
textcol /b=6 /t=15
gotoxy 1 14
middle Thank_you_for_using_this_short__demo,__I__hope__you_will_be_satisfied. 14
middle Remember,_if_you_plan_to_use_any__of__the__software__included__in_this
middle package_for_more_than_30_days,__you_have__to_register__(otherwise_your
middle use_is_illegal).______________________________________________________
middle Thank_you!_-_Torbjörn_JOHANSSON,_autor_of_this_utilitypackage.
gotoxy 1 20
textcol
curson