I'm making a system recovery CD and need to achieve the function of inserting the CD to restore the system. I've modified someone else's program but haven't succeeded yet. Please help see where the problem is. Thanks. The relevant statement for using option 1 to perform system recovery is: ghost.exe -clone,mode=pload,src=D:\System Backup\XP_01222009.GHO,dst=1:1 -fx -sure -rb. The system boot guide file in the recovery CD is loaded in the virtual hard disk, and ghost.exe is loaded on the CD.
The program is as follows:
1. AUTOEXEC.BAT
@ECHO OFF
XMSDSK 4096 /Y
LH MSCDEX /D:IDE-CD /D:SCSI-CD /D:SATA-CD /D:USB-CD /S /K
FINDCD /S
SET CDR=%CDROM1%
%CDR%
@echo off
:loop
%cdrom%
cls
echo.
echo ********************************************************
echo.
echo Choice Action
echo.
echo 1 Start Ghost
echo.
echo 2 Quit to MS-DOS
echo.
echo ********************************************************
echo.
CHOICE /N /C:12 PICK A NUMBER (1, 2)%1
echo.
if errorlevel ==2 goto dos
if errorlevel ==1 goto ghost
:ghost
cls
pause
ghost.exe -clone,mode=pload,src=D:\System Backup\XP_01222009.GHO,dst=1:1 -fx -sure -rb
:dos
cls
echo Opening MS-DOS Prompt
echo.
:: next 3 lines added on 9/10/02, L.Ebright, DimIPS
echo Diskette drive A: has been re-assigned due to the CD-ROM boot process
echo and is NOT available when the system is started using the CD.
echo To use the Diskette drive, use drive letter B:
echo.
echo A RAMDISK drive is available for this boot cycle as %RAMD%:
echo It contains several Hard Drive setup tools. Please use these
echo tools only under the direction of Dell Support Staff.
echo.
echo Type "exit" to go back to the menu.
echo.
command
goto loop
:end
cls
2. config.sys
files=10
buffers=15
dos=high,umb
stacks=9,256
lastdrive=z
device=himem.sys /testmem:off
DEVICEHIGH=VIDE-CDD.SYS /D:IDE-CD
DEVICEHIGH=ASPICD.SYS /D:SCSI-CD
DEVICEHIGH=gcdrom.sys /D:SATA-CD
DEVICEHIGH=USBCD.SYS /D:USB-CD
The program is as follows:
1. AUTOEXEC.BAT
@ECHO OFF
XMSDSK 4096 /Y
LH MSCDEX /D:IDE-CD /D:SCSI-CD /D:SATA-CD /D:USB-CD /S /K
FINDCD /S
SET CDR=%CDROM1%
%CDR%
@echo off
:loop
%cdrom%
cls
echo.
echo ********************************************************
echo.
echo Choice Action
echo.
echo 1 Start Ghost
echo.
echo 2 Quit to MS-DOS
echo.
echo ********************************************************
echo.
CHOICE /N /C:12 PICK A NUMBER (1, 2)%1
echo.
if errorlevel ==2 goto dos
if errorlevel ==1 goto ghost
:ghost
cls
pause
ghost.exe -clone,mode=pload,src=D:\System Backup\XP_01222009.GHO,dst=1:1 -fx -sure -rb
:dos
cls
echo Opening MS-DOS Prompt
echo.
:: next 3 lines added on 9/10/02, L.Ebright, DimIPS
echo Diskette drive A: has been re-assigned due to the CD-ROM boot process
echo and is NOT available when the system is started using the CD.
echo To use the Diskette drive, use drive letter B:
echo.
echo A RAMDISK drive is available for this boot cycle as %RAMD%:
echo It contains several Hard Drive setup tools. Please use these
echo tools only under the direction of Dell Support Staff.
echo.
echo Type "exit" to go back to the menu.
echo.
command
goto loop
:end
cls
2. config.sys
files=10
buffers=15
dos=high,umb
stacks=9,256
lastdrive=z
device=himem.sys /testmem:off
DEVICEHIGH=VIDE-CDD.SYS /D:IDE-CD
DEVICEHIGH=ASPICD.SYS /D:SCSI-CD
DEVICEHIGH=gcdrom.sys /D:SATA-CD
DEVICEHIGH=USBCD.SYS /D:USB-CD
