Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 01-04-2005, 08:51 PM   #1 (permalink)
 
Newb Techie

Join Date: Jan 2005

Posts: 3

hack123

Default make a bootable disk

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.
hack123 is offline  
Old 01-04-2005, 11:26 PM   #2 (permalink)
 
Wizard Techie

Join Date: Jul 2003

Posts: 3,940

ekÆsine

Default

post your batch file, maybe someone can debug it for you.
ekÆsine is offline  
Old 01-06-2005, 12:38 PM   #3 (permalink)
 
Newb Techie

Join Date: Jan 2005

Posts: 3

hack123

Default

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
hack123 is offline  
Old 01-06-2005, 12:40 PM   #4 (permalink)
 
Ultra Techie

Join Date: Oct 2004

Posts: 600

Roshi229

Send a message via AIM to Roshi229 Send a message via Yahoo to Roshi229
Default

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?
__________________
http://www.kbdigisol.com

<form action=\"http://www.srsyo.org/tfsearch.php\" method=\"get\">
<input type=\"text\" name=\"search\"> <input type=\"submit\" name=\"submit\" value=\"Search first, ask later!\"></form>
powered by emily .
Roshi229 is offline  
Old 01-06-2005, 01:15 PM   #5 (permalink)
 
Ultra Techie

Join Date: Oct 2004

Posts: 600

Roshi229

Send a message via AIM to Roshi229 Send a message via Yahoo to Roshi229
Default

: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/d...ntro.html#tips
http://www.computerhope.com/batch.htm
http://www.carleton.ca/~dmcfet/menu.html
__________________
http://www.kbdigisol.com

<form action=\"http://www.srsyo.org/tfsearch.php\" method=\"get\">
<input type=\"text\" name=\"search\"> <input type=\"submit\" name=\"submit\" value=\"Search first, ask later!\"></form>
powered by emily .
Roshi229 is offline  
Old 01-06-2005, 01:32 PM   #6 (permalink)
 
Monster Techie

Join Date: May 2004

Location: /usr/root/mn/us

Posts: 1,121

bla!! is on a distinguished road

Default

It sounds to me like you're variable isn't re-setting.

At the exit portion of your batch file try adding

set choice=0
__________________
<br>
Its a frigging Laptop, not a Labtop!!!!
bla!! is offline  
Old 01-06-2005, 03:30 PM   #7 (permalink)
 
Newb Techie

Join Date: Jan 2005

Posts: 3

hack123

Default

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.
hack123 is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On