Question

Locked

Operating System are you booting from ?

By dkittle ·
I made a XP boot disk which I then copied to my flash drive.

copy of config.sys Autoexec.bat and Menu.


config.sys is blank
Autoexec.bat is also blank
Menu:

@ECHO OFF
prompt $p$g

CLS
:LOOP

ECHO A. ghost
ECHO Q. Quit

SET Choice=
SET /P Choice=Type the letter and press Enter:

IF NOT '%Choice%' == '' SET Choice=%Choice:~0,1%
ECHO.

IF /I '%Choice%' == 'A' GOTO ghost
IF /I '%Choice%" == 'Q' GOTO End
IF NOT '%Choice%' == '' SET Choice=%Choice:~0,1%
ECHO.


:ghost
C:
cd Ghost
start Ghost.exe


:Again
PAUSE
CLS
GOTO Loop

:End

This conversation is currently closed to new comments.

10 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

And your point is . . . .

by OldER Mycroft In reply to Operating System are you ...
Collapse -

well....someone is trying to help me

by dkittle In reply to And your point is . . . .

trying to make a bootable thumb drive with a menu system.

Can you offer any assistance ?

Collapse -

All under control OM :)

by Jacky Howe In reply to And your point is . . . .

Just a bit of extended guidence.

Collapse -

You

by Jacky Howe In reply to Operating System are you ...

didn't have to start a new post.

Add this to your Autoexec.bat

c:
call c:\menu.bat

and remove start from the Menu.bat that wasn't in my previous instructions.

If you want ghost to run on startup
modify your Autoexec.bat
@echo off
c:
cd ghost
ghost.exe

Collapse -

ok...

by dkittle In reply to You

It said I had reached the max posts?
I don't want ghost to start up right away. I want to be able to pick from a few options.
I copied your original menu script and changed every thing you said to.

it reads
@ECHO OFF
CLS
:LOOP
:: ECHO A. Menu item A
ECHO A. Ghost
ECHO B. Menu item B
ECHO C. Menu item C
ECHO Q. Quit
:: SET /P prompts for input and sets the variable
:: to whatever the user types
SET Choice=
SET /P Choice=Type the letter and press Enter:
:: The syntax in the next line extracts the substring
:: starting at 0 (the beginning) and 1 character long
IF NOT '%Choice%'=='' SET Choice=%Choice:~0,1%
ECHO.
:: /I makes the IF comparison case-insensitive
IF /I '%Choice%'=='A' GOTO Ghost
IF /I '%Choice%'=='B' GOTO ItemB
IF /I '%Choice%'=='C' GOTO ItemC
IF /I '%Choice%'=='Q' GOTO End
ECHO "%Choice%" is not valid. Please try again.
ECHO.
GOTO Loop
:Ghost
C:
cd Ghost
Ghost.exe
GOTO Again
:ItemB
ECHO Insert commands for Item B.
GOTO Again
:ItemC
ECHO Insert commands for Item C.
GOTO Again
:Again
PAUSE
CLS
GOTO Loop
:End

When I boot from the disk it loops over and over it doesn?t stop. Its acting like I selected an invalid option and returning to the start of the loop. I inserted pause statements under each line and its erroring out here ECHO "%Choice%" is not valid. Please try again.
ECHO.

Thx again for you help

Collapse -

Can you

by Jacky Howe In reply to ok...

give me a file and directory structure of the drive that you are using.

You can do it from a command prompt in windows. EG: dir /a /s E: > direct.txt

Collapse -

here you go

by dkittle In reply to Can you

Volume in drive F has no label.
Volume Serial Number is F0F8-4F3C

Directory of F

05/15/2001 06:57p 116,736 IO.SYS
04/07/2001 01:40p 9 MSDOS.SYS
06/08/2000 05:00p 93,040 COMMAND.COM
06/10/2008 06:40p 20 AUTOEXEC.BAT
06/10/2008 06:25p 0 CONFIG.SYS
06/08/2000 05:00p 17,175 DISPLAY.SYS
06/08/2000 05:00p 58,870 EGA.CPI
06/08/2000 05:00p 58,870 EGA2.CPI
06/08/2000 05:00p 58,753 EGA3.CPI
06/08/2000 05:00p 21,607 KEYB.COM
06/08/2000 05:00p 34,566 KEYBOARD.SYS
06/08/2000 05:00p 31,942 KEYBRD2.SYS
06/08/2000 05:00p 31,633 KEYBRD3.SYS
06/08/2000 05:00p 13,014 KEYBRD4.SYS
06/08/2000 05:00p 29,239 MODE.COM
06/10/2008 07:33p 0 BOOTLOG.PRV
06/10/2008 07:44p 0 BOOTLOG.TXT
06/10/2008 07:00p 864 menu.bat
06/10/2008 05:41p <DIR> Ghost
06/10/2008 07:33p 0 direct.txt
19 File(s) 566,338 bytes

Directory of F:\Ghost

06/10/2008 05:41p <DIR> .
06/10/2008 05:41p <DIR> ..
11/27/2006 04:12p 1,397,900 GHOST.EXE
1 File(s) 1,397,900 bytes

Total Files Listed:
20 File(s) 1,964,238 bytes
3 Dir(s) 247,250,944 bytes free

Collapse -

No luck either

by Jacky Howe In reply to here you go

I can't get the other menu to work under XP or DOS. This one works but you also need <i>CHOICE.COM</i> in the root directory. Modify this to suit your needs.

@echo off
GOTO MENU
:MENU
cls
echo Admin Menu
echo 1 - Create User
echo 2 - Create Group
echo 3 - Create Computer
echo 4 - Quit
Choice "Enter a menu selection" /C:1234
if errorlevel 4 GOTO EOF
if errorlevel 3 GOTO COMPUTER
if errorlevel 2 GOTO GROUP
if errorlevel 1 GOTO USER
GOTO EOF
:USERECHO Create New user
pause
goto MENU
:GROUP
ECHO Create New Group
pause
goto MENU
:COMPUTER
ECHO Create New computer
pause
goto MENU
:EOF

Collapse -

choice.com

by dkittle In reply to No luck either

Where do I find a copy of choice.com ?


I'll be ?!? i think it works.


thx so much if it doesn't i will post...again thank you

Collapse -

Should be able to get it here

by Jacky Howe In reply to choice.com

http://hp.vector.co.jp/authors/VA007219/dkclonesup/choice.html

Back to Hardware Forum
10 total posts (Page 1 of 1)  

Related Discussions

Related Forums