TIP: Click on subject to list as thread! ANSI
echo: batpower
to: Jasen Betts
from: Paul Quinn
date: 2003-02-17 13:45:00
subject: `Pop-up` w/Batches?

Hi! Jasen,

On Fri, 14 Feb 03, you wrote to me:

 PQ>> You been peeking over my shoulder again, BTW.  What you got in
 PQ>> your Reboot.Bat? an' I'll show you mine.  ;-)

 JB> it's all 4dos... so it may not make much sense :)

It's alright.  Any good batch reads like pseudocode anyhow, even a .BTM one.  :)

 JB> {at}ECHO OFF
 JB>  REBOOT [/?] [/c] [/v] [Menu-option]
 JB>            [/?] this help
 JB>            [/c] boot cold
 JB>            [/v] confirm option
 JB>   [Menu-option] force start-up menu option

Interestingly, we've both pretty much done the same thing... set-up for a
boot config prior to a cold boot.  Here's a snap of mine:

=== begin REBOOT.BAT ===
::  MULTI-BOOT SELECTOR
::  v1.12.03
::  A batch file to make re-starting the PC easier.

::  Pre-condition:  Requires the DOS utility package DYNABOOT - will
::                  *NOT* work without it! - by Matthew J. Palcic,
::                  Xenia, Ohio.

::  Uses: 1.  'CHOICE.COM' an MS-DOS 6.xx batch utility!

::        2.  'HDPARK.COM' a utility I picked-up somewhere.  All it's
::            supposed to do is park the drive heads over the landing
::            zone of the fixed disk.

::        3.  'SMARTDRV.EXE' the DOS utility from DOS ver 5.00 onwards.

::  Variables used:
::    %0 - BATch command-name to start this program
::    %1 - parameter to direct program flow to sub-function procedures


{at}echo off
cls
echo               ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo               º           MULTI-BOOT SELECTOR         º
echo               º                                       º
echo               º       courtesy of Paul D. Quinn       º
echo               º                                       º
echo               º               2 Apr 1994              º
echo               ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

smartdrv /c
if "%1" == "DOS7BOOT" goto DOS7BOOT
if "%1" == "dos7boot" goto DOS7BOOT
if "%1" == "hdparker" goto HDPARKER
if "%1" == "HDPARKER" goto HDPARKER
if "%1" == "scrnsave" goto SCRNSAVE    
if "%1" == "SCRNSAVE" goto SCRNSAVE    
if "%1" == "windows" goto WINDOWS
if "%1" == "WINDOWS" goto WINDOWS
goto MENU
echo ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

:WINDOWS
:: *** Stand-alone Windows boot
smartdrv c-
cd c:\utils\dynaboot
dynaboot windows /c
GOTO EXIT
echo ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

:DOS7BOOT
:: *** DOS boot with network config
smartdrv c-
cd c:\utils\dynaboot
dynaboot DOS7boot /c
GOTO EXIT
echo ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

:HDPARKER
:: *** Park the HD safely
hdpark
GOTO EXIT
echo ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

:SCRNSAVE
:: *** Simple little DOS screen saver
PSIS SAVUNTIL /NOTIME
GOTO MENU
echo ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

:MENU
cls
echo                           MULTI-BOOT SELECTOR
echo                           ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
echo.
echo                  usage is:  %0 FUNCTION [c/r]
echo.
echo                  * FUNCTIONs currently supported:
echo.
echo                  Function Title         FUNCTION   Opt
echo                  ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
echo                  ** Reserved ******     ********    1
echo                  ** Reserved ******     ********    2
echo                  DOS only boot up       DOS7BOOT    3
echo                  ** Reserved ******     ********    4
echo                  ** Reserved ******     ********    5
echo                  ** Reserved ******     ********    6
echo                  Park the Hard Disk     HDPARKER    7
echo                  Use Windows (95) only  WINDOWS     8
echo                  ** WRONG WAY (Exit this screen)    9
echo                  ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
echo.
echo                  * Function name is UPPERCASE or lowercase
echo.
CHOICE /C:123456789 /N /T:8,30 ÿ                Please enter desired option
number [1-9]:
::                             ^
::             The non-printing char here is [Alt152]

if ERRORLEVEL 9 goto EXIT
if ERRORLEVEL 8 goto WINDOWS
if ERRORLEVEL 7 goto HDPARKER
if ERRORLEVEL 6 goto MENU    
if ERRORLEVEL 5 goto SCRNSAVE
if ERRORLEVEL 4 goto MENU    
if ERRORLEVEL 3 goto DOS7BOOT    
if ERRORLEVEL 2 goto MENU
if ERRORLEVEL 1 goto MENU
if ERRORLEVEL 0 goto MENU
echo ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

:EXIT
:: *** END of batch file
::  (c)1994 by Paul D. Quinn.
break off
=== end REBOOT.BAT ===

In its purest form, Dynaboot can call on a library of 100 AutoExec.Bat
& Config.Sys file pairings with its own mouse-aware menu system (which
I haven't used for over 10 years).  I just have 2 such pairings these
days... Windows (default) or straight to DOS 7 (with a logon to the network
as a DOS client).

Bugger, I just realised that it's not in the BFDS collection.  If you or
anyone else might be interested, it can be FREQ-ed from here during my
on-line times, 2130-2355 AEST using BinkP/Telnet/Ifcico, or during ZMH
(0300-0400 AEST) using POTS.  32.2k small archive; majik name: Dynaboot.

Cheers,
Paul.

--- Radius/W32 4.009-02.01.03/RC10
* Origin: Don't force it, get a bigger hammer. (ZMH only) (3:640/384)
SEEN-BY: 633/267 270
@PATH: 640/384 954 774/605 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.