|  | 
回复楼主
| 这是我正在用的GHOST中自动寻找其他备份文件的一段,请参考修改成你自己需要的就行…… 
 echo正在自动查找并恢复其他备份文件,请稍候……
 if exist mini_dd.txt del mini_dd.txt
 if exist test.txt del test.txt
 minito /nohp /p /ifs>mini_dd.txt
 strings lines=LINESIZE mini_dd.txt
 strings lines=add %lines%,1
 set line=1
 :hfgho_1
 strings line=add %line%,1
 if %line%#==%lines%# goto hfgho_2
 strings lined=read mini_dd.txt,%line%
 strings row1=left %lined%,3
 strings row3=mid %lined%,8,2
 strings row5=mid %lined%,19,3
 echo %row3% >>test.txt
 goto hfgho_1
 :hfgho_2
 strings linesize=linesize test.txt
 strings drv=read test.txt,1
 strings linesize=add %linesize%,1
 set number=1
 :hfgho_3
 if %number%#==%linesize%# goto hfgho_4
 strings number=add %number%,1
 strings drv=read test.txt,%number%
 for %%i in (%drv%) do dir /a-d /b /s %%i\*.gho >nul >temp.txt
 find /i ".gho" temp.txt >nul
 type temp.txt | lmod set lastdrv=[] >temp.bat
 call temp.bat >nul
 goto hfgho_3
 :hfgho_4
 if %lastdrv%#==# goto hfqt_2
 del test.txt >nul
 del mini_dd.txt >nul
 del temp.bat >nul
 del temp.txt >nul
 Ghost -clone,mode=pload,src=%lastdrv%:1,dst=%actp% -sure -fx
 goto cqdn
 | 
 |