1.

Solve : Startup Batchfile?

Answer»

Yet another request for a batchfile and an edit to my autoexec.bat.

I would like the computer to give me an option between DOS, Windows 3.11 and OpenGem every time I switch on my PC, and if no answer is given after a set time default STARTUP is DOS.

Any answers or links to freeware programs, all good.I don't know where to find a program like that offhand, but I do know one thing: A batch file will not do this. how about some lines in my autoexec?
From DOS, I can start Windows (WIN) and OpenGem (GEM) and DOS is already there, I could write a batch file that will execute WIN or GEM or do nothing (DOS) and put a path to it in the autoexec. All I need is someone to write the batch.After some research on batch files, I did one myself:

Code: [Select]@ECHO OFF
CLS
:: By Wooden Spoon
ECHO.
ECHO Boot MANAGER
ECHO.
ECHO A Start OpenGem Core
ECHO B Start Windows 3.11
ECHO C Continue in DOS 6.22
ECHO.
CHOICE /c:abc Select one -
IF ERRORLEVEL 3 GOTO PL3
IF ERRORLEVEL 2 GOTO PL2
IF ERRORLEVEL 1 GOTO PL1
GOTO END
:PL1
@echo off
C:\GEM.BAT
GOTO END
:PL2
@echo off
C:\WIN
GOTO END
:PL3
@echo off
C:\
GOTO END
:END
CD\

I called it startup.bat, put it in the root directory, and included the line \STARTUP.BAT as the last line of my autoexec.
DOS still has to be loaded first, but it would be anyway to run GEM or windows.
Runs fine in 6.22
What commands give and display a time limit before SELECTING the default?
I'm pretty sure the SYNTAX is "/t:y,nn" where y is the default choice and "nn" is the number of seconds. I'm not exactly positive that that's what it is, but I think it is. Otherwise just type "choice /?".

-John



Discussion

No Comment Found