Help - Search - Members - Calendar
Full Version: Need Help plz
The CD Forum > The CD Forum > Bootable CDs
MR Linux
im confused to create the boot file .. so

could anyone plz send me the completed .ima boot file that carry this option when i boot up my dvd:

1- recover image automatically from dvd.
2- run ghost only.

when the user choose the first option then the msg will appear like this:

******************************************************

SYSTEM RESTORE WIZARD

******************************************************

-----------------------WARNING------------------------

All data in the C: drive will be erased
System will restart after the recovery process.

Press Ctrl+C to abort the operation
Press any key to continue
******************************************************

when the user choose the second option it will run ghost only without do anythings.








i already create the .img boot file but i want 4th option like below , i mean when the dvd boot up then the option will be like this:

1- Boot computer with cdrom support.<<<<<<<<<<Work Fine
2- Boot computer without cdrom support.<<<<<<<<Work Fine
3- Restore partition/drive with Ghost.<<<<<<<<<<<Work Fine
4- run norton ghost only. <<<<<<<<<<<<<<<<< Problem here cant load ghost.exe



there is sth mistakes in command i dont know what , cause every option i select is work fine just option number 4 cant run ghost , when i choose option 4 it will run option number 3 don't know why.

my cmmand code is :
if there is mistake with code correct it plz
autoexec.bat
========
CODE


@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

IF "%config%"=="WGHOST" GOTO FGHOST <<<<< here i cant load ghost when i select the option number4

:FGHOST
call ghost.exe
cls


:NOCDROM
cls
echo.
echo DetectCD was unable to determine the CD-ROM drive letter.
echo.
:LQUIT
set CDROM=



config.sys
======
CODE

[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=WGHOST, Run Ghost only.

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


[WGHOST]
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




im glad if anyone can help me .. i need it
jaclaz
NO need to put all your post in size 4 fonts.
I put your code in codebox tags to better visibility.

At first sigth you are nesting choices in autoexec.bat.

Start with a brand new Autoexec.bat (leave config.sys as is)

CODE
@ECHO OFF
mouse.com
cls

IF "%config%"=="NOCD" GOTO NOCD
path=a:\;%CDROM%:\

IF "%config%"=="SUCD" GOTO SUCD
IF "%config%"=="GHOST" GOTO GHOST
IF "%config%"=="WGHOST" GOTO WGHOST
GOTO LQUIT

:NOCD
ECHO NOCD
GOTO LQUIT

:SUCD
ECHO SUCD
GOTO LQUIT

:GHOST
ECHO GHOST
GOTO LQUIT

:WGHOST
ECHO WGHOST
GOTO LQUIT

:LQUIT
ECHO LQUIT


Verify that each choice echoes the correct text, then re-add the command lines replacing the ECHO lines.
Please note how the adding to path the %CDROM% variable should only occur when CDrom is enabled.

jaclaz
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.