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

 
Output of file : DO_DEMO1.BAT contained in archive : ABFS.ZIP
@Echo OFF
IF NOT .%RESTART%==. GOTO PHASE%RESTART%
:PHASE0
SET RESTART=0
Cls
Echo Batch File DO_DEMO1 is in Phase 0
echo ÿ
ramfree
echo ÿ
echo This "Phase" is just a dummy section that would correspond to your
echo real "restartable" batch file's first phase. Just let it complete
echo normally by pressing anything OTHER THAN {CTRL-BREAK} now.
echo ÿ
Echo Press Any Key to Continue Normal Execution
PAUSE
:PHASE1
SET RESTART=1
Cls
Echo Batch File DO_DEMO1 is in Phase 1
echo ÿ
ramfree
echo ÿ
echo ÿ
echo This "Phase" is ALSO just a dummy section that would correspond to your
echo real "restartable" batch file's second phase. Just let it complete
echo normally by pressing anything OTHER THAN {CTRL-BREAK} now.
echo ÿ
Echo Press Any Key to Continue Normal Execution
PAUSE
:PHASE2
SET RESTART=2
Cls
Echo Batch File DO_DEMO1 is in Phase 2
echo ÿ
ramfree
echo ÿ
echo This "Phase" is just a dummy section that would correspond to your
echo real "restartable" batch file's third phase.
echo ÿ
echo Now, let's suppose that the user had to BREAK out of your batch file
echo at this point, because something was "wrong", like running out of
echo disk space or whatever. So, when the PAUSE below occurs, please
echo use {CTRL-BREAK} to terminate the batch file.
echo ÿ
echo ÿ
echo HOWEVER, before you break out, REMEMBER that to restart, all you
echo have to do is type:
echo ÿ
echo DO_DEMO1
echo ÿ
Echo Press {CTRL-BREAK}, then Restart by: DO_DEMO1 when ready!
Echo ÿ
Echo Or, Press Any Normal Key to Continue the DEMO after RESTARTING!
Echo ÿ
PAUSE
:PHASE3
SET RESTART=3
Cls
Echo Batch File DO_DEMO1 is in Phase 3
echo ÿ
ramfree
echo ÿ
echo If you are here via restarting with DO_DEMO1, Congratulations!
echo ÿ
echo This "Phase" is just a dummy section that would correspond to your
echo real "restartable" batch file's fourth phase. Just let it complete
echo normally by pressing anything OTHER THAN {CTRL-BREAK} now.
echo ÿ
Echo Press Any Key to Continue Normal Execution
PAUSE
:OMEGA
SET RESTART=
Cls
Echo End of DO_DEMO1
echo ÿ
ramfree
echo ÿ
echo If you are here by using the RESTART mechanism (DO_DEMO1) after
echo breaking out of the original sequence, you will now drop back to DOS
echo when DO_DEMO1 completes.
echo ÿ
echo To resume the overall demo at that point, type:
echo ÿ
echo INTRO.1
echo ÿ
echo That will REPEAT this entire demo, but this second time, do not
echo "break" out at phase 2, but just run on to the end.
echo ÿ
Echo Terminating Execution of DO_DEMO1.BAT
Ask Press {ENTER} to Continue


  3 Responses to “Category : Batch File Utilities - mostly for DOS
Archive   : ABFS.ZIP
Filename : DO_DEMO1.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/