home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
GLEN
/
ABFS.ZIP
/
DO_DEMO1.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-07-27
|
3KB
|
91 lines
@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