home *** CD-ROM | disk | FTP | other *** search
/ Phoenix CD 2.0 / Phoenix_CD.cdr / 01e / let12.zip / DEMO.BAT < prev    next >
DOS Batch File  |  1987-09-17  |  1KB  |  32 lines

  1. echo Off
  2. set T=0
  3. LET DemoStartTime=(dateline)
  4. :AskName
  5. LET dummy=(do "YourName")
  6. if %T% == 3 goto Sleep
  7. if `%FName%' == `' goto AskName
  8. if `%MayI%' == `Y' LET name=Fname
  9. if not `%MayI%' == `Y' LET name=(words Title Lname)
  10. cls
  11. echo Well, %name%, this demonstration will show you some of the things
  12. echo that are possible with LET and environment variables.  You will see
  13. echo  ∙  how to do simple math,
  14. echo  ∙  how to make a batch file loop a certain number of times,
  15. echo  ∙  how to get the system date and time,
  16. echo  ∙  how to manipulate strings
  17. echo  ∙  how to parse file names
  18. echo  ∙  how to create formatted output
  19. echo  ∙  how to extract information directly from databases
  20. echo  
  21. echo WARNING: before you begin, be sure that your environment space
  22. echo is at least 900 bytes in size -- I'll be needing that much to
  23. echo complete this demonstration.  If you are not sure how to do that,
  24. echo please (re)read the documentation, otherwise, you might run into
  25. echo serious problems.
  26. echo  
  27. echo Stop this demonstration now, or
  28. Pause
  29. DEMO-1
  30. :Sleep
  31. Echo Ok, so you're not in a talkative mood. G'night.
  32.