Category : Batch File Utilities - mostly for DOS
Archive   : ABFS.ZIP
Filename : DEMO_3.BAT

 
Output of file : DEMO_3.BAT contained in archive : ABFS.ZIP
@Echo Off
Cls
if .%0==.demo_3.1 goto phase1
if .%0==.demo_3.2 goto phase2
if .%0==.demo_3.3 goto phase3
if .%0==.demo_3.4 goto phase4
if .%0==.demo_3.5 goto phase5
:phase0
set batfile=demo_3.0
Cls
Type ADVBAT15.txt | more
:phase1
set batfile=demo_3.1
L Getit.PAS
echo ÿ
Ask Press {ENTER} to Continue
:phase2
set batfile=demo_3.2
type advbat16.txt | more
echo ÿ
Ask Press {ENTER} to Continue
:phase3
set batfile=demo_3.3
cls
type Advbat17.txt | more
echo ÿ
Ask Press {ENTER} to Continue
set name=
set phone=
echo ÿ
Echo Here we go. The current value(s) of NAME and PHONE are:
Echo ÿ
Echo NAME="%NAME%"
Echo PHONE="%PHONE%"
Echo ÿ
Echo Now, lets call GETIT
echo ÿ
Ask Press {ENTER} to Continue
call getit
echo ÿ
echo OK, we are back in DEMO_3. Lets see if REPLY.BAT exists.
echo ÿ
if exist REPLY.BAT Echo YUP, it is here... lets look at it with LIST!
echo ÿ
Ask Press {ENTER} to Continue
if exist REPLY.BAT L Reply.Bat
echo ÿ
Ask Press {ENTER} to Continue
:phase4
set batfile=demo_3.4
echo NOW, lets see what our NAME and PHONE are, BEFORE calling REPLY.BAT
Echo ÿ
Echo NAME="%NAME%"
Echo PHONE="%PHONE%"
Echo ÿ
:phase5
set batfile=demo_3.5
Echo NOW, lets CALL REPLY and then show our two environment variables again!
Echo ÿ
Ask {ENTER} to CALL REPLY.BAT
call reply
echo ÿ
echo Back in Demo_3 after CALL REPLY.BAT ...
Echo ÿ
Echo NAME="%NAME%"
Echo PHONE="%PHONE%"
Echo ÿ
Echo ....................... EUREKA ...... WE'VE DONE IT! ................
echo ÿ
Ask Press {ENTER} to Continue the DEMO_3.BAT file Now
cls
type ADVBAT18.txt | more
echo ÿ
Ask Please Press ENTER One More Time Now!
:omega


  3 Responses to “Category : Batch File Utilities - mostly for DOS
Archive   : ABFS.ZIP
Filename : DEMO_3.BAT

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/