|
以下是本人U盘启动系统里面的全自动恢复系统批处理,仅供参考
红色部分为命令
@ECHO OFF
tw /np /nm /nw >nul
rem U盘启动系统_全自动恢复系统
rem 这个批处理由 神(_喌乄龍 原创,用于 龙行天下 U盘启动维护系统
rem blog:hi.baidu.com/353999772 mail:szl1123@163.com
rem 修改时请保留此信息
mouse.exe >nul
path a:\
set UPan=
set UboSzl=boot\uboot.SZL
set num=2
cls
:MENU
call w.bat box (+white on +blue) @autoexec.bat:MENU_ #%num%,5
if errorlevel 100 goto MENU
if "%?%"=="3" goto R
if "%?%"=="2" goto AGHOST_
if "%?%"=="1" goto MGHOST_
:MENU_ "全自动恢复系统 by szl1123"[x]
龙行天下 U盘启动维护系统
USB驱动加载状态:%DriSta%
--------------------------------------------
[ &G. 运行GHOST手动操作 ]
[ &A. 全自动恢复系统 ]
[ &R. 重启计算机 ]
#?秒后高亮选项自动运行
:MGHOST_
set num=2
set ghost=MGHOST
goto MGHOST
:AGHOST_
set num=1
set ghost=AGHOST
goto AGHOST
:FIND
echo.
echo 正在设定U盘盘符:
if exist z:\%UboSzl% set UPan=z:
IF not "%UPan%"=="" GOTO pf
if exist y:\%UboSzl% set UPan=y:
IF not "%UPan%"=="" GOTO pf
if exist x:\%UboSzl% set UPan=x:
IF not "%UPan%"=="" GOTO pf
if exist w:\%UboSzl% set UPan=w:
IF not "%UPan%"=="" GOTO pf
if exist v:\%UboSzl% set UPan=v:
IF not "%UPan%"=="" GOTO pf
if exist u:\%UboSzl% set UPan=u:
IF not "%UPan%"=="" GOTO pf
if exist t:\%UboSzl% set UPan=t:
IF not "%UPan%"=="" GOTO pf
if exist s:\%UboSzl% set UPan=s:
IF not "%UPan%"=="" GOTO pf
if exist r:\%UboSzl% set UPan=r:
IF not "%UPan%"=="" GOTO pf
if exist q:\%UboSzl% set UPan=q:
IF not "%UPan%"=="" GOTO pf
if exist p:\%UboSzl% set UPan=p:
IF not "%UPan%"=="" GOTO pf
if exist o:\%UboSzl% set UPan=o:
IF not "%UPan%"=="" GOTO pf
if exist n:\%UboSzl% set UPan=n:
IF not "%UPan%"=="" GOTO pf
if exist m:\%UboSzl% set UPan=m:
IF not "%UPan%"=="" GOTO pf
if exist l:\%UboSzl% set UPan=l:
IF not "%UPan%"=="" GOTO pf
if exist k:\%UboSzl% set UPan=k:
IF not "%UPan%"=="" GOTO pf
if exist j:\%UboSzl% set UPan=j:
IF not "%UPan%"=="" GOTO pf
if exist i:\%UboSzl% set UPan=i:
IF not "%UPan%"=="" GOTO pf
if exist h:\%UboSzl% set UPan=h:
IF not "%UPan%"=="" GOTO pf
if exist g:\%UboSzl% set UPan=g:
IF not "%UPan%"=="" GOTO pf
if exist f:\%UboSzl% set UPan=f:
IF not "%UPan%"=="" GOTO pf
if exist e:\%UboSzl% set UPan=e:
IF not "%UPan%"=="" GOTO pf
if exist d:\%UboSzl% set UPan=d:
IF not "%UPan%"=="" GOTO pf
if exist c:\%UboSzl% set UPan=c:
IF not "%UPan%"=="" GOTO pf
if exist b:\%UboSzl% set UPan=b:
IF not "%UPan%"=="" GOTO pf
if exist a:\%UboSzl% set UPan=a:
IF not "%UPan%"=="" GOTO pf
GOTO ERROR_
:pf
if not exist %upan%\boot\imgs\GFiles\ghost.SZL goto ERROR_
echo U盘盘符是 %upan%
echo.
echo 正在复制文件 :
echo [ 1-1 ] ghost.exe
if not exist a:\ghost.exe copy %upan%\boot\imgs\GFiles\ghost.SZL a:\ghost.exe >nul
echo.
echo 文件复制完毕 : OK
goto %ghost%
:AGHOST
if not exist a:\ghost.exe goto find
echo.
echo.
echo 程序正在启动···
echo.
echo. 请 稍 后
ghost.exe -clone,mode=pload,src=%Upan%\ghost\ImaRec.gho:1,dst=2:1 -fro -rb -sure >nul
GOTO MGHOST
:MGHOST
if not exist a:\ghost.exe goto find
echo.
echo.
echo 程序正在启动···
echo.
echo. 请 稍 后
ghost.exe -fx >nul
GOTO RESET_
:RESET_
call w.bat box (+white on +blue) @autoexec.bat:RESET #1,5
if errorlevel 100 goto R
if "%?%"=="2" goto MENU
if "%?%"=="1" goto R
:RESET "全自动恢复系统 by szl1123"[x]
感谢使用 龙行天下 U盘启动维护系统
USB驱动加载状态:%DriSta%
--------------------------------------------
制作:神 州 龙 河南·禹州
邮箱:S z L 1 1 2 3 @ 1 6 3.C o M
博客:hi.baidu.com/353999772
[ &R. 重启计算机 ] [ &M. 返回主菜单 ]
#? 秒后高亮选项自动运行
:ERROR_
call w.bat box (+white on +blue) @autoexec.bat:ERROR #1,5
if errorlevel 100 goto R
if "%?%"=="1" goto R
:ERROR "全自动恢复系统 by szl1123"[x]
龙行天下 U盘启动维护系统
--------------------------------------------
错误:文件未找到, #? 秒后重启计算机
[ &R. 确定 ]
:R
r.com
[ 本帖最后由 szl1990 于 2009-5-30 22:11 编辑 ] |
|