无忧启动论坛

标题: 小弟正在改一个一键ghost,求大神解释几个autoexet.bat代码~ [打印本页]

作者: pussy    时间: 2014-8-30 13:54
标题: 小弟正在改一个一键ghost,求大神解释几个autoexet.bat代码~
@ECHO OFF
REM 1KEY GHOST HD/CD/UD
SET DIRCMD=/O:N
IF "%config%"=="G83EN" GOTO G83E
IF "%config%"=="G11EN" GOTO G11E
IF "%config%"=="COMPT" GOTO CMP
IF "%config%"=="DISKG" GOTO DG
cls
echo XMSDSK is Loading...please wait...
xmsdsk.exe 15000 x: /y >nul
set ramdrive=x:
rem call fdrd
cls
echo Copy files is running...please wait...
copy /y *.com %ramdrive%\ >nul
copy /y *.exe %ramdrive%\ >nul
copy /y *.bat %ramdrive%\ >nul
path=%ramdrive%\
set comspec=%ramdrive%\command.com
set verx=c
set ghox=ghos
set ghoy=1KG
set ghod=1
set ghoh=..
set ghom=~1
set ghoi=C_PAN.GHO
set ghoj=C_PAN*.GH?
set ghot=C_PAN.TXT
set ghor=C_PAN.INI
:ERROR
IF EXIST tools.ex_ GOTO EXT
echo ERROR: tools.ex_ not found.
echo SORRY: Be will not use the disk.
echo.
GOTO QUIT

:EXT
cls
echo Preparing to start your computer.
echo This may take a few minutes. Please wait...
vol >%ramdrive%\vol.txt
copy tools.ex_ %ramdrive%\tools.arj >nul
%ramdrive%
cd\
arj x -y -gdoshome tools.arj >nul
del tools.arj >nul
lh doskey >nul
IF "%config%"=="G83ST" GOTO G83ID
IF "%config%"=="G83S1" GOTO G83SA
IF "%config%"=="G83S2" GOTO G83UD
IF "%config%"=="G83S3" GOTO G83UC
IF "%config%"=="G11ST" GOTO G11ID
IF "%config%"=="G11S1" GOTO G11SA
IF "%config%"=="G11S2" GOTO G11UD
IF "%config%"=="G11S3" GOTO G11UC
goto quit

:CMP
path=a:\
ctmouse.exe >nul
call d.bat
goto quit

:DG
ctmouse.exe >nul
diskgen.exe
call d.bat
goto quit

:G83E
ctmouse.exe >nul
ghost83.exe
call d.bat
goto quit

:G11E
ctmouse.exe >nul
ghost.exe
call d.bat
goto quit

:G83ID
ren ghost.exe ghost11.exe
ren ghost83.exe ghost.exe
set ghov=83
shsucdx.com /D:IDE-CD
findcd.exe /s
set verx=c
cls
usb-hdd.bat

:G83SA
ren ghost.exe ghost11.exe
ren ghost83.exe ghost.exe
set ghov=83
shsucdx.com /D:?SATACD01 /D:?SATACD02 /D:?SATACD03
findcd.exe /s
set verx=c
cls
usb-hdd.bat

:G83UD
ren ghost.exe ghost11.exe
ren ghost83.exe ghost.exe
set ghov=83
set verx=u
cls
usb-hdd.bat

:G83UC
ren ghost.exe ghost11.exe
ren ghost83.exe ghost.exe
set ghov=83
shsucdx /D:USB-CD
findcd /s
cls
usb-hdd.bat

:G11ID
set ghov=11
shsucdx.com /D:IDE-CD
findcd.exe /s
set verx=c
cls
usb-hdd.bat

:G11SA
set ghov=11
shsucdx.com /D:?SATACD01 /D:?SATACD02 /D:?SATACD03
findcd.exe /s
set verx=c
cls
usb-hdd.bat

:G11UD
set ghov=11
set verx=u
cls
usb-hdd.bat

:G11UC
set ghov=11
shsucdx /D:USB-CD
findcd /s
cls
usb-hdd.bat

:QUIT
整个代码是这样5683我就想能不能去掉繁杂的东西,只保留ghostU盘某GHO恢复到硬盘某盘符,但是看不懂这些命令不知从何着手,求解~





欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) Powered by Discuz! X3.3