home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Phoenix CD 2.0
/
Phoenix_CD.cdr
/
01e
/
let12.zip
/
DEMO.BAT
< prev
next >
Wrap
DOS Batch File
|
1987-09-17
|
1KB
|
32 lines
echo Off
set T=0
LET DemoStartTime=(dateline)
:AskName
LET dummy=(do "YourName")
if %T% == 3 goto Sleep
if `%FName%' == `' goto AskName
if `%MayI%' == `Y' LET name=Fname
if not `%MayI%' == `Y' LET name=(words Title Lname)
cls
echo Well, %name%, this demonstration will show you some of the things
echo that are possible with LET and environment variables. You will see
echo ∙ how to do simple math,
echo ∙ how to make a batch file loop a certain number of times,
echo ∙ how to get the system date and time,
echo ∙ how to manipulate strings
echo ∙ how to parse file names
echo ∙ how to create formatted output
echo ∙ how to extract information directly from databases
echo
echo WARNING: before you begin, be sure that your environment space
echo is at least 900 bytes in size -- I'll be needing that much to
echo complete this demonstration. If you are not sure how to do that,
echo please (re)read the documentation, otherwise, you might run into
echo serious problems.
echo
echo Stop this demonstration now, or
Pause
DEMO-1
:Sleep
Echo Ok, so you're not in a talkative mood. G'night.