标题: 小弟正在改一个一键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