home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
RBBS in a Box Volume 1 #2
/
RBBS_vol1_no2.iso
/
add2
/
paws21.zip
/
PAWSDEMO.BAT
< prev
next >
Wrap
DOS Batch File
|
1989-01-31
|
11KB
|
311 lines
echo off
cls
echo.
echo ╔═══════════════════════════╗
echo ║ PAWS ║
echo ║ version 2.1 ║
echo ╚═══════════════════════════╝
echo Demonstration Batch file
if not exist paws.exe goto no_paws
echo.
echo.
echo.
echo.
echo Why just use this:
pause
echo.
echo.
echo.
echo When you can have this:
echo.
echo.
echo.
echo.
paws /W10 /c13 /b15 /i
cls
paws Good $N, welcome to PAWS!/W30 /C30 /B30 /T20 /i
cls
echo ╔══════════════════════════════════════════════════════╗
echo ║ This batch file will demonstrate several modes ║
echo ║ of PAWS. Of course, to show all the ways PAWS can ║
echo ║ be used would take hours, for PAWS is only limited ║
echo ║ by your imagination. ║
echo ╚══════════════════════════════════════════════════════╝
echo.
echo.
paws /W15 /i
cls
echo ╔═════════════════════════════════════╗
echo ║ PAWS has 2 basic display modes ║
echo ╚═════════════════════════════════════╝
echo.
echo.
echo.
echo.
paws On a line all by itself...Press any key for the other mode /i
paws or in a WINDOW!...Press any key to continue /W15 /i
cls
echo ╔═══════════════════════════════════════╗
echo ║ PAWS has 16 different border types ║
echo ║ They are all listed in PAWSDOC.COM ║
echo ║ ║
echo ║ Here is a small sample of a few ║
echo ║ borders ║
echo ╚═══════════════════════════════════════╝
echo.
echo.
echo.
echo.
paws This is type 1 /w10 /c15 /b7 /o1
paws This is type 6 /w11 /c14 /b10 /o6
paws This is type 11 /w13 /c10 /b14 /o11
paws This is type 16 (The Default) /w15 /c14 /b15
cls
echo ╔═══════════════════════════════════════╗
echo ║ PAWS can be made to scroll ║
echo ║ (which is the default) ║
echo ╚═══════════════════════════════════════╝
echo.
echo.
echo.
paws /i /w11 /c14 /b15 /t600
cls
echo ╔═══════════════════════════════════════╗
echo ║ Or you can make PAWS ║
echo ║ pause! ║
echo ╚═══════════════════════════════════════╝
echo.
echo.
echo.
paws /i /w11 /c14 /b15 /t600 /p
cls
echo ╔═══════════════════════════════════════╗
echo ║ PAWS will also make noise ║
echo ║ NOTE: Let the cycle run through once ║
echo ║ before pressing a key ║
echo ╚═══════════════════════════════════════╝
echo.
paws I Can use any tone you want /s1000 /i
echo.
paws Here is a lower one /s100 /i
echo.
echo.
paws Here is middle "C" /s524 /W11 /i
cls
echo ╔══════════════════════════════╗
echo ║ PAWS can also be in color ║
echo ║ 256 colors are available ║
echo ╚══════════════════════════════╝
echo.
paws Press any key to see my color chart! /s2000 /i
paws /c? /i
echo.
paws Press any key for more! /W78 /c79 /b77 /i
:less
cls
echo ╔════════════════════════════════════╗
echo ║ If you don't want your batch files ║
echo ║ to wait forever, ║
echo ║ You can set PAWS to TIMEOUT ║
echo ║ don't press any key, ║
echo ║ wait 10 seconds for PAWS to TimeOut║
echo ╚════════════════════════════════════╝
echo.
echo.
paws Wait for me to Timeout /T10 /i
if errorlevel 1 goto more
goto less
:more
paws /w144 /i
cls
echo ╔══════════════════════════════════════════════════════╗
echo ║ PAWS can be used in a batch file menu system ║
echo ╚══════════════════════════════════════════════════════╝
:menu
echo.
echo.
echo.
echo A...Word Processing
echo B...Spread Sheet
echo C...Games
echo D...Quit
echo.
:again
paws Enter Your Choice: (A,B,C or D) /Kabcd /i /p
if errorlevel 68 goto quit
if errorlevel 67 goto games
if errorlevel 66 goto spread
if errorlevel 65 goto word
goto again
:word
cls
echo You are in the Word Processing Section
echo.
paws /i
cls
goto menu
:spread
cls
echo You are in the Spread Sheet Section
echo.
paws /i
cls
goto menu
:games
cls
echo You are in the games section
echo.
paws /i
cls
goto menu
:quit
echo.
echo.
echo.
paws /W13 /i
cls
echo ╔═══════════════════════════════════════════════════╗
echo ║ PAWS can also be the center of attraction ║
echo ╚═══════════════════════════════════════════════════╝
echo.
echo.
paws Press any key to see me in the middle /i
paws /X0 /W40 /c14 /i
cls
echo ╔═══════════════════════════════════════════════════════════╗
echo ║ PAWS can be told to remember what the screen looked like ║
echo ╚═══════════════════════════════════════════════════════════╝
echo.
dir /w
echo.
paws /i
paws /X1 /W15 /C13 /i
echo.
echo ╔═══════════════════════════════════════════════╗
echo ║ See, Just as you left it ║
echo ╚═══════════════════════════════════════════════╝
echo.
echo.
echo.
paws /i
cls
echo ╔═══════════════════════════════════════════╗
echo ║ PAWS can also handle very long lines. ║
echo ║ PAWS will only display 68 characters on ║
echo ║ the screen at any one time. With strings║
echo ║ longer than 68 characters, the whole ║
echo ║ message will not be displayed at once, ║
echo ║ but it will all be displayed. ║
echo ╚═══════════════════════════════════════════╝
echo.
echo.
echo.
echo.
paws Now is the time for all good computers to demonstrate PAWS to the best of their circuit's ability /W10 /C14/i
cls
echo ╔═══════════════════════════════════════════╗
echo ║ PAWS Can also tell the time, date, DOS ║
echo ║ version, current drive, current path, ║
echo ║ the day and the contents of any ║
echo ║ environment variable. ║
echo ╚═══════════════════════════════════════════╝
echo.
echo.
echo.
paws The Time is $T...Press any key /W46 /C10 /B10/i
paws The Time is $U /w10 /c15 /b14 /p /t120
paws Your DOS version is $v /W31 /C31 /B31/i
paws It is the $y day of the year /W46 /C11 /B11/i
paws It is now $U /W30 /C31 /B31/i
paws Another way of looking at it is $V$f /W30 /C31 /B31/i
paws Today is $V$W or $V$W/W95 /C94 /B94/i
paws The current Directory is $p /W75 /C75 /B75/i
paws The current drive is $n: /W10 /C15/i
REM It is necessary, in batch file, to put 2 percent signs to get one printed
paws Drive $n: has $FA free or $FP%% /w11 /c10 /b15
REM You must use $%%env%% in a batch file, $%env% on the command line
paws Your PATH is $%%path%% /W11 /C14/i
cls
echo ╔════════════════════════════════════════════════════╗
echo ║ You can stack many system variables in one prompt ║
echo ╚════════════════════════════════════════════════════╝
echo.
echo.
echo.
echo.
paws The current drive is $n:, The current directory is $p, Your path is $%%path%% /W14 /C10/i
cls
echo ╔══════════════════════════════════════════════════╗
echo ║ PAWS can also read the PAWS environment variable║
echo ║ and get command line parameters from it. Your ║
echo ║ current environment is displayed below. ║
echo ╚══════════════════════════════════════════════════╝
set
paws /C14 /i
cls
echo ╔══════════════════════════════════════════════════╗
echo ║ By setting: ║
echo ║ "PAWS=I am reading PAWS /W40/C40/B40/S2000" ║
echo ║ I don't needto put anything on the command line. ║
echo ╚══════════════════════════════════════════════════╝
echo.
echo.
echo.
set oldpaws=%paws%
set paws=I am reading PAWS/w40/c40/b40/s2000
set
paws
set paws=%oldpaws%
set oldpaws=
cls
echo ╔══════════════════════════════════════════════════╗
echo ║ Finally, I know that some of you are not ║
echo ║ registering because you just love the OLD ║
echo ║ BORING version of PAUSE that comes with DOS! ║
echo ║ Now, PAWS can act just like DOS's PAUSE if you ║
echo ║ want. You now have no excuse for not registering ║
echo ╚══════════════════════════════════════════════════╝
echo.
echo.
echo.
REM Here it is, DOS has met its match!
paws /dos
cls
echo ╔══════════════════════════════════════════════════╗
echo ║ Would You like to view the PAWS Documentation? ║
echo ╚══════════════════════════════════════════════════╝
echo.
echo.
echo.
paws Please press Y or N /W11 /C14 /Kyn/i /o11
if errorlevel 89 goto read_doc
goto no_doc
:read_doc
if exist pawsdoc.com paws /?
:no_doc
cls
echo ╔═══════════════════════════════════════════╗
echo ║ This concludes the PAWS batch file Demo ║
echo ╚═══════════════════════════════════════════╝
echo.
echo.
echo.
paws /c13 /i /w10 /o1
paws /v /i
goto end
:no_paws
echo.
echo.
echo.
echo ╔═══════════════════════════════════════════╗
echo ║ This demonstration requires PAWS.EXE ║
echo ║ to be in the current directory ║
echo ║ Please correct and retry ║
echo ╚═══════════════════════════════════════════╝
:end
REM Thank you for viewing the PAWS Demonstration Batch File
REM Created by Michael L. Wilson
REM 1161 Longdon Street
REM Longmont, CO 80501