无忧启动论坛

标题: 关于雨林木风的onekey ghost [打印本页]

作者: 2011寂寞泪    时间: 2011-10-29 20:37
标题: 关于雨林木风的onekey ghost
AUTOEXEC.BAT代码如下:
@echo off
prompt $p$g
set tz=gmt-8
set dircmd=/o:n
set path=a:
set param=-noide -nousb
set isreboot=-rb
xmsman
set hdpmi=16384
hdpmi32
ndos -lfn -mountall -cp:936
for %%b in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist %%b:\ylmf.ima set s=%%b
for %%b in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist %%b:\ghost\ghosthis.txt set ghosthis=%%b:\ghost\ghosthis.txt
if exist %ghosthis% copy %ghosthis% ghosthis.txt
if exist %ghosthis% set ghosthis=a:\ghosthis.txt
if not exist %s%:\ghost.bat call minito.bat
attrib -r -s -h %s%:\*.* > nul
if exist %s%:\ghost.bat copy %s%:\ghost.bat
if exist %s%:\ghost.exe copy %s%:\ghost.exe
if exist %s%:\boot.bak del %s%:\boot.ini
if exist %s%:\boot.bak ren %s%:\boot.bak boot.ini
if exist %s%:\Boot\BCD.bak attrib -s -h -r %s%:\Boot\BCD*.* > nul
if exist %s%:\Boot\BCD.bak del %s%:\Boot\BCD
if exist %s%:\Boot\BCD.bak ren %s%:\Boot\BCD.bak BCD
if exist %s%:\ghost.bat del %s%:\Ghost.exe
if exist %s%:\ghost.bat ren %s%:\Ghost.bak Ghost.exe
if exist %s%:\ghost.bat del %s%:\grldr
if exist %s%:\ghost.bat ren %s%:\grldr.bak grldr
if exist %s%:\ghost.bat del %s%:\grldr.mbr
if exist %s%:\ghost.bat ren %s%:\grldr.mbr.bak grldr.mbr
if exist %s%:\ghost.bat del %s%:\YlmF.ima
if exist %s%:\ghost.bat ren %s%:\YlmF.bak YlmF.ima
if exist %s%:\ghost.bat del %s%:\ghost.bat
if exist %s%:\bootlog.txt del %s%:\bootlog.txt
if exist %s%:\hiberfile.sys del %s%:\hiberfile.sys
if exist %s%:\pagefile.sys del %s%:\pagefile.sys
attrib +s +h +r %s%:\*.* > nul
xmsman -c
if exist a:\ghost.bat ghost.bat
menu.bat

MINITO.BAT代码如下:
@echo off
set actp=
minito /nohp /p /ifs>mini_dd.txt
set line=1
:beginmini
strings line=add %line%,1
strings lined=read mini_dd.txt,%line%
if %lined%#==# goto endmini
strings row1=left %lined%,3
strings row2=mid %lined%,8,2
strings row5=mid %lined%,19,3
strings int=find %lined%,:
strings row0=left %lined%,%int%
if not %actp%#==# goto mini_1
if %row5%#==YES# set actp=%row1%
if %row5%#==YES# set disk=%row0%
:mini_1
if %row0%#==%disk%# set lastd=%row1%
if %row0%#==%disk%# set lastp=%row2%
goto beginmini
:endmini
del mini_dd.txt
set int=1
:begingfile
set isexist=
if exist %lastp%\ghost\Ghost_%int%.GHO set isexist=1
if %isexist%#==1# strings int=add %int%,1
if %isexist%#==1# goto begingfile
set gbfile=%lastd%\Ghost\Ghost_%int%.GHO

请教高人,我想把默认备份目录 ghost 修改为 system~1

但是不生成ghosthis.txt,导致只能备份不能恢复。

希望高人帮忙看看要怎么修改。
作者: weijun189    时间: 2011-10-30 17:03
路过,支持一下楼主吧




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