make a bootable disk

Status
Not open for further replies.

hack123

Beta member
Messages
3
I am making a bat file that has a menu on it... It is supposed to come up in dos mode when you start the machine (win 2000Pro) and when I start the machine up, it cycles through all of the menus and never is on the beginning menu. When I start the bat file on the desktop by double clicking it, it works fine.

Please help. :(
 
The coding is:
@echo off

REM This is the main menu
cls
:start
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Main Menu º
echo ÌÍÍÍÍÍÍÍÍÍÍÍÍ͹
echo º1.+ BIOS º
echo º2.+ GHOST º
echo º3.+ DEBUG º
echo º4. Exit º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍͼ
set choice=
set /p choice=Your choice:
if '%choice%' == '4' goto exit
if '%choice%' == '3' goto debug
if '%choice%' == '2' goto ghost
if '%choice%' == '1' goto bios

REM This is the submenu of the ghost menu
cls
:ghost
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º GHOST Menu º
echo ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹
echo º 1.+ BIOS º
echo º 2.- GHOST º
echo º A. GX 100/110 º
echo º B. GX 150 º
echo º C. GX 260 º
echo º D. GX 270 º
echo º E. GX 280 º
echo º F. D 600/800 º
echo º 3.+ DEBUG º
echo º 4. Exit º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
set choice=
set /p choice=Your choice:
if '%choice%' == '4' goto exit
if '%choice%' == '3' goto debug
if '%choice%' == 'f' goto D
if '%choice%' == 'e' goto 280g
if '%choice%' == 'd' goto 270g
if '%choice%' == 'c' goto 260g
if '%choice%' == 'b' goto 150g
if '%choice%' == 'a' goto 110g
if '%choice%' == '2' goto start
if '%choice%' == '1' goto bios

REM This is the bios submenu
cls
:bios
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º BIOS Menu º
echo ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹
echo º 1.- BIOS º
echo º A. GX 100 º
echo º B. GX 110 º
echo º C. GX 150 º
echo º D. GX 260 º
echo º 2.+ GHOST º
echo º 3.+ DEBUG º
echo º 4. Exit º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
set choice=
set /p choice=Your choice:
if '%choice%' == '4' goto exit
if '%choice%' == '3' goto debug
if '%choice%' == '2' goto ghost
if '%choice%' == 'd' goto 260b
if '%choice%' == 'c' goto 150b
if '%choice%' == 'b' goto 110b
if '%choice%' == 'a' goto 100b
if '%choice%' == '1' goto start

REM This is the submenu of the debug
cls
:debug

REM Start -- This is the deubg central
cd\
Debug\AUTOEXEC.bat
REM End -- This is the end of debug central

echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º DEBUG Menu º
echo ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹
echo º 1.+ BIOS º
echo º 2.+ GHOST º
echo º 3.- DEBUG º
echo º 4. Exit º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
set choice=
set /p choice=Your choice:
if '%choice%' == '4' goto exit
if '%choice%' == '3' goto start
if '%choice%' == '2' goto ghost
if '%choice%' == '1' goto bios
 
Ahh... another Dell Tech
1. what will this be used for mainly... what aspects of bios and ghost?
2. why the selections of machines for ghost? will this be set to pull the selective image?
 
:ROLLOUTMENU
@echo off
cls
echo.
echo **name removed** ROLLOUT MENU
echo. ----------------------------------
echo 1. MIGRATE PROFILE
echo.
echo 2. STAGE XP
echo 3. STAGE VPC
echo.
echo 4. RESTORE XP
echo 5. RESTORE VPC
echo.
echo 6. EXIT
echo ----------------------------------
choice /c:123456 " SELECT AN ACTIVITY

if errorlevel 6 goto EXIT
if errorlevel 5 goto RESTOREVPC
if errorlevel 4 goto RESTOREXP
if errorlevel 3 goto STAGEMENUVPC
if errorlevel 2 goto STAGEMENUXP
if errorlevel 1 goto MIGRATEMENU
goto ROLLOUTMENU




i don't see that goto line on any of yours... that would stop it from reading right through all of them....


also, it looks like you know what you're doing, but for anyone else here's a few links...

http://home.att.net/~gobruen/progs/dos_batch/dos_intro.html#tips
http://www.computerhope.com/batch.htm
http://www.carleton.ca/~dmcfet/menu.html
 
The program is supposed to from a single menu, open different functions on a bootable cd... Instead of putting in a whole different bunch of cd's.
The cd contains all of the machines that I have. The choice command does not work with win 2kPro.
 
Status
Not open for further replies.
Back
Top Bottom