home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Phoenix CD 2.0
/
Phoenix_CD.cdr
/
01e
/
let12.zip
/
DEMO-12.BAT
< prev
next >
Wrap
DOS Batch File
|
1987-09-17
|
2KB
|
53 lines
echo off
if `%LastRec%' == `' Demo-11
:LoopDB
if %Rec% == %LastRec% goto DoneDB
Let Dummy=(do "Read-DB")
echo Record %Rec% of %DB-File% has the following information:
echo %FirstName% %LastName% (deleted: %deleted%)
echo %Street%
echo %City%, %State% %Zip%
echo
echo
goto LoopDB
:DoneDB
pause
echo This concludes the demonstration of LET. If you think that
echo this program is useful, please be sure to register your copy.
echo You can do this by typing the command REGISTER when you see
echo your DOS prompt, and following the instructions there.
echo
if `%MayI%' == `Y' goto End
LET Now=(dateline)
LET EndTime=(plus (times 60 (trim (mid Now 20 2))) (mid Now 23 2))
LET StartTime=(plus (times 60 (trim (mid DemoStartTime 20 2))) (mid DemoStartTime 23 2))
LET Elapsed=(minus EndTime StartTime)
LET Check=(mid Elapsed 1 1)
if `%Check%' == `-' LET Elapsed=(plus Elapsed 720)
echo Listen, %Name%, we've known each other for %Elapsed% minutes now,
LET MayI=(upper (mid (ask "couldn't we be on a first-name basis? " 20) 1 1))
if not `%MayI%' == `Y' goto UpTight
LET Name=Fname
echo Oh, thank you, %Name%, you don't know how that makes me feel!
goto End
:UpTight
echo Very well, %Name%, if you insist.
:End
echo That's all I've got to show you, %Name%.
set FirstName=
set LastName=
set Street=
set City=
set State=
set Zip=
set Now=
set EndTime=
set StartTime=
set Elapsed=
set Check=
set MayI=
set DB-File=
set LastRec=
set Rec=
set Deleted=