无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 3360|回复: 0
打印 上一主题 下一主题

小弟正在改一个一键ghost,求大神解释几个autoexet.bat代码~

[复制链接]
跳转到指定楼层
1#
发表于 2014-8-30 13:54:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
@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恢复到硬盘某盘符,但是看不懂这些命令不知从何着手,求解~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-11-27 16:34

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表