Computing.Net > Forums > Programming > Menu in Autoexec.Bat

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Menu in Autoexec.Bat

Reply to Message Icon

Name: OneBadTexican2005
Date: May 29, 2006 at 12:12:21 Pacific
OS: Windows XP Professional w
CPU/Ram: AMD Athlon 64 3400+/1 gb
Product: HomeMade
Comment:

I am trying to modify my autoexec.bat in a boot disk that I am trying to image to create a bootable cd that would allow me to do the following:

Upon boot, I want to be given the choice to press (1) for starting Ghost.exe and (2) for starting Partition Magic.

After creating my Boot CD from the disk image I have only been able to get as far as getting the CD to boot me into Ghost but I am not given a choice to select one program or the other. Can anybody help?

Here are my Autoexec.Bat and Config.Sys files.

I would truly appreciate anybody's help. I am very new at this stuff.

Thanks!

Autoexec.bat is:
@ECHO OFF
mouse.com
path=a:\;%CDROM%:\
cls
IF "%config%"=="NOCD" GOTO LQUIT
LH MSCDEX.exe /D:cdrom001 /L:%CDROM%
set CDROM=FOO23
DETECTCD.EXE
IF "%CDROM%"=="FOO23" GOTO NOCDROM
%CDROM%
cls
IF "%config%"=="SUCD" GOTO LQUIT
ghost.bat
GOTO LQUIT
:NOCDROM
cls
echo.
echo DetectCD was unable to determine the CD-ROM drive letter.
echo.
:LQUIT
set CDROM=

Config.Sys is:
[menu]
menuitem=SUCD, Boot computer with support for CD-ROM.
menuitem=NOCD, Boot computer without support for CD-ROM.
menuitem=GHOST, Restore partition/drive with Ghost.
menuitem=PMAGIC, Partition Hardrive with Partition Magic
menudefault=CD,30
menucolor=7,0

[SUCD]
device=himem.sys /testmem:off
device=oakcdrom.sys /D:cdrom001
device=btdosm.sys
device=flashpt.sys
device=btcdrom.sys /D:cdrom001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys /D:cdrom001

[NOCD]
device=himem.sys /testmem:off

[GHOST]
device=himem.sys /testmem:off
device=oakcdrom.sys /D:cdrom001
device=btdosm.sys
device=flashpt.sys
device=btcdrom.sys /D:cdrom001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys /D:cdrom001

[PMAGIC]
device=himem.sys /testmem:off
device=oakcdrom.sys /D:cdrom001
device=btdosm.sys
device=flashpt.sys
device=btcdrom.sys /D:cdrom001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys /D:cdrom001

[COMMON]
files=60
buffers=20
dos=high,umb
stacks=9,256
lastdrive=z
device=display.sys con=(ega,,1)
country=001,437,country.sys
install=mode.com con cp prepare=((437) ega.cpi)
install=mode.com con cp select=437
install=keyb.com us,,keyboard.sys

Please help me if you can. Thank you so much!



Sponsored Link
Ads by Google

Response Number 1
Name: Shr0Om
Date: May 30, 2006 at 01:11:32 Pacific
Reply:

Try to add this at the very end of your Autoexec.bat file. Just swap Excel&word with ghost & part. magic

:menu
cls
echo 1.Excel
echo 2.Word
set /p choice=?:
if %choice% equ 1 goto Excel
if %choice% equ 2 goto Ghost
echo Invalid choice. & pause & goto menu

:Excel
cd C:\Program Files\Microsoft Office\OFFICE11\
start Excel.exe
exit

:Ghost
cd C:\Program Files\Microsoft Office\OFFICE11\
start Winword.exe
exit


0

Response Number 2
Name: OneBadTexican2005
Date: May 30, 2006 at 07:38:45 Pacific
Reply:

It worked!!!! Thank you so much!!!!!!


0

Response Number 3
Name: Shr0Om
Date: May 31, 2006 at 01:00:53 Pacific
Reply:

Happy to help:]


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Menu in Autoexec.Bat

autoexec.bat XP www.computing.net/answers/programming/autoexecbat-xp/11646.html

An Autoexec Bat file question www.computing.net/answers/programming/an-autoexec-bat-file-question/1955.html

Java not working in D drive www.computing.net/answers/programming/java-not-working-in-d-drive/6193.html