这个问题对批处理比较好的人来讲,不是太难的事情,可是我学习,研究了好长时间还是没有结果,不过学到了不少东西,还望懂的朋友给指点一二就可以了,兄弟将十分感激.
以下是autoexec.bat 和config.sys的原文.
 
这是autoexec.bat的内容:
@ECHO OFF
IF "%config%"=="MEMTEST" GOTO MEMTEST
@ECHO OFF
set EXPAND=YES
SET DIRCMD=/O:N
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%CDROM%:\
copy command.com %RAMD%:\ > NUL
set comspec=%RAMD%:\command.com
copy extract.exe %RAMD%:\ > NUL
copy readme.txt %RAMD%:\ > NUL
:ERROR
IF EXIST ebd.cab GOTO EXT
echo Please insert Windows 98 Startup Disk 2
echo.
pause
GOTO ERROR
:EXT
%RAMD%:\extract /y /e /l %RAMD%: ebd.cab > NUL
echo The diagnostic tools were successfully loaded to drive %RAMD%.
echo.
IF "%config%"=="NOCD" GOTO QUIT
IF "%config%"=="HELP" GOTO HELP
IF "%config%"=="MEMTEST" GOTO MEMTEST
IF "%config%"=="RSTP" GOTO RSTP
IF "%config%"=="AMI621" GOTO AMI621
IF "%config%"=="KBC" GOTO KBC
IF "%config%"=="SVIDSSID" GOTO SVIDSSID
IF "%config%"=="DMIAMI" GOTO DMIAMI
IF "%config%"=="DMIAWARD" GOTO DMIAWARD
IF "%config%"=="DEBUG" GOTO DEBUG
IF "%config%"=="RU" GOTO RU
IF "%config%"=="GHOST75" GOTO GHOST75
IF "%config%"=="GHOST75SATA" GOTO GHOST75SATA
IF "%config%"=="GHOST8" GOTO GHOST8
IF "%config%"=="GHOST8SATA" GOTO GHOST8SATA
IF "%config%"=="FDISK" GOTO FDISK
IF "%config%"=="SPFDISK" GOTO SPFDISK
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
echo.
GOTO QUIT
:MEMTEST
MEMTEST.EXE 2048 /FASTDETECT
GOTO QUIT
:RSTP
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
%CDROM%:
CD RST
RSTP.com
CD\
GOTO QUIT
:AMI621
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
%CDROM%:
CD AMI621
AMIDIAG.EXE
CD\
GOTO QUIT
:KBC
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
%CDROM%:
CD KBC
UPI40.EXE
CD\
GOTO QUIT
:SVIDSSID
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
%CDROM%:
CD SVIDSSID
RWA.EXE
CD\
GOTO QUIT
:DMIAMI
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
%CDROM%:
CD DMI
DMI20_37.exe /S
CD\
GOTO QUIT
:DMIAWARD
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
%CDROM%:
CD DMI
DMI247U.exe
CD\
GOTO QUIT
:DEBUG
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
%CDROM%:
CD DEBUG
DEBUG.exe
CD\
GOTO QUIT
:RU
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
%CDROM%:
CD RU
RU.exe
CD\
GOTO QUIT
:GHOST75
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
%CDROM%:
CD GHOST75
GHOST75.EXE
CD\
GOTO QUIT
:GHOST75SATA
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
%CDROM%:
CD GHOST75
GHOST75.EXE -FNI
CD\
GOTO QUIT
:GHOST8
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
%CDROM%:
CD GHOST8
GHOST8.EXE
CD\
GOTO QUIT
:GHOST8SATA
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
%CDROM%:
CD GHOST8
GHOST8.EXE -FNI
CD\
GOTO QUIT
:SPFDISK
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
%CDROM%:
CD SPFDISK
SPFDISK.EXE
CD\
GOTO QUIT
:FDISK
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
%CDROM%:
CD FDISK
FDISK.EXE
CD\
GOTO QUIT
:HELP
cls
call help.bat
echo Your computer will now restart and the startup menu will appear.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
restart.com
GOTO QUIT
:QUIT
CLS
echo       ====================================================================
echo                      Multi-Boot V2.30 Update on 2005/01/07
echo       IF YOU DO NOT HAVE A VALIDLY LICENSED COPY OF ANY VERSION OR EDITION
echo             OF MULTI-BOOT THAT IS A SUCCESSOR TO ANY OF THIS TOOL,
echo            YOU ARE NOT AUTHORIZED TO COPY OR OTHERWISE USE THE TOOL
echo                     AND YOU HAVE NO RIGHTS UNDER THIS TOOL.
echo.
echo                                             By DQA7 RogerWang & CevinYu
echo       ====================================================================
echo            AMIDIAG == %CDROM%:\AMI621\AMI621
echo            MEMTEST == A:\MEMTEST
echo            R.S.T Test === %CDROM%:\RST\RSTP
echo            KBC Scan Code == %CDROM%:\KBC\UPI40
echo            SVID(2D2C)_SSID(2F2E) == %CDROM%:\SVIDSSID\RWA
echo            DMI TABLE (FOR AMI) == %CDROM%:\DMI\DMI20_37 /S
echo            DMI TABLE (FOR AWARD) == %CDROM%:\DMI\DMI247U
echo            DEBUG == %CDROM%:\DEBUG\DEBUG
echo            RU == %CDROM%:\RU\RU
echo            GHOST75 == %CDROM%:\GHOST75\GHOST75
echo            GHOST75 (FOR SATA) == %CDROM%:\GHOST75\GHOST75 -NFI
echo            GHOST8 == %CDROM%:\GHOST8\GHOST8
echo            GHOST8 (FOR SATA) == %CDROM%:\GHOST8\GHOST8 -NFI
echo            FDISK == %CDROM%:\FDISK\FDISK
echo            SPFDISK == %CDROM%:\SPFDISK\SPFDISK
echo.
rem clean up environment variables
set CDROM=
set LglDrv=
 
 
这是config.sys的内容:
 
[MENU]
MENUITEM=CD, START COMPUTER WITH CD-ROM SUPPORT.
SUBMENU DOS_1, DOS TEST UTILITY.
SUBMENU GHOST_1, GHOST TOOLS.
SUBMENU FDISK_1, FDISK.
menudefault=CD,30
menucolor=7,0
[DOS_1]
MENUITEM=AMI621, START AMIDIAG(1221) TEST.
SUBMENU MEM_2, MEMORY TEST TOOLS.
MENUITEM=KBC, START KBC SCAN CODE.
MENUITEM=SVIDSSID, START SVID(2D2C) / SSID(2F2E).
SUBMENU DMI_2, DMI TABLE TEST.
MENUITEM=DEBUG, START DEBUG (-d d000:8000).
MENUITEM=RU, START RU.
menudefault=AMI621,30
menucolor=9,0
[MEM_2]
MENUITEM=MEMTEST, START MEMTEST(2.0).
MENUITEM=RSTP, START R.S.T(P) TEST.
menudefault=MEMTEST,30
menucolor=9,0
[GHOST_1]
SUBMENU GHOST75_2, START GHOST75.
SUBMENU GHOST8_2, START GHOST8.
menudefault=GHOST75,30
menucolor=9,0
[FDISK_1]
MENUITEM=FDISK, START FDISK.
MENUITEM=SPFDISK, START SPFDISK.
menudefault=FDISK,30
menucolor=9,0
[GHOST75_2]
MENUITEM=GHOST75, START GHOST75.
MENUITEM=GHOST75SATA, START GHOST75 (FOR SATA).
menudefault=GHOST75,30
menucolor=11,0
[GHOST8_2]
MENUITEM=GHOST8, START GHOST8.
MENUITEM=GHOST8SATA, START GHOST8 (FOR SATA).
menudefault=GHOST8,30
menucolor=11,0
[DMI_2]
MENUITEM=DMIAMI, START DMI TABLE (FOR AMI).
MENUITEM=DMIAWARD, START DMI TABLE (FOR AWARD).
menudefault=DMIAMI,30
menucolor=9,0
[CD]
device=himem.sys /testmem:off
device=oakcdrom.sys /D:mscd001
device=btdosm.sys
device=flashpt.sys
device=btcdrom.sys /D:mscd001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys /D:mscd001
files=10
buffers=10
dos=high,umb
stacks=9,256
devicehigh=ramdrive.sys /E 2048
lastdrive=z
[NOCD]
device=himem.sys /testmem:off
files=10
buffers=10
dos=high,umb
stacks=9,256
devicehigh=ramdrive.sys /E 2048
lastdrive=z
[HELP]
device=himem.sys /testmem:off
files=10
buffers=10
dos=high,umb
stacks=9,256
devicehigh=ramdrive.sys /E 2048
lastdrive=z
[MEMTEST]
[RSTP]
INCLUDE=PUBLIC
[AMI621]
INCLUDE=PUBLIC
[KBC]
INCLUDE=PUBLIC
[SVIDSSID]
INCLUDE=PUBLIC
[DMIAMI]
INCLUDE=PUBLIC
[DMIAWARD]
INCLUDE=PUBLIC
[DEBUG]
INCLUDE=PUBLIC
[RU]
INCLUDE=PUBLIC
[GHOST75]
INCLUDE=PUBLIC
[GHOST75SATA]
INCLUDE=PUBLIC
[GHOST8]
INCLUDE=PUBLIC
[GHOST8SATA]
INCLUDE=PUBLIC
[FDISK]
INCLUDE=PUBLIC
[SPFDISK]
INCLUDE=PUBLIC
[PUBLIC]
DEVICE=himem.sys /testmem:off
DEVICE=A:\OAKCDROM.SYS /D:MSCD001
files=40
buffers=40
dos=high,umb
stacks=9,256
devicehigh=ramdrive.sys /E 2048
lastdrive=z
 
他们完成的功能有DOS下内存测试,DOS下ghost备份与还原.我所想知道就是在备份与还原的时候如何能加载进SATA光驱的驱动.
 
查看别人的方法是这样的:
1 将gcdrom.sys文件拷贝至启动盘中 
2 在Autocad.bat文件中添加如下命令 
    SHSUCDX /D:SATA0 
3 在config.sys文件中添加如下命令 
    device=gcdrom.sys /D:SATA0
 
也有人这样写:
CONFIG.SYS
-----------------------
DEVICE=IDE\GCDROM.SYS /D:MSCD000 /C0
DEVICE=IDE\GCDROM.SYS /D:MSCD001 /C1
DEVICE=IDE\GCDROM.SYS /D:MSCD002 /C2


AUTOEXEC.BAT
----------------------------
MSCDEX.EXE /D:MSCD000 /D:MSCD001 /D:MSCD002
 
我都试过了,我觉得我们用得不是一个工具都不行,还请懂行的给指点一二.在这,兄弟谢谢了.