我在制作一张系统恢复光盘,需要实现插入光盘,恢复系统的功能,自己修改别人的程序,还没能实现,请大家帮帮忙,看是哪里的问题,谢谢。其中使用选项1执行系统恢复,相关语句为:ghost.exe-clone,mode=pload,src=D:\System Backup\XP_01222009.GHO,dst=1:1-fx-sure-rb 。恢复光盘中的系统启动引导文件加载在虚拟硬盘中,ghost.exe加载在光盘中。
程序如下:
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
程序如下:
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
