Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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.sysPlease help me if you can. Thank you so much!

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

![]() |
![]() |
![]() |

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