本帖最后由 ygqiang 于 2015-1-8 16:32 编辑
以上是Win7PE版本,支持VHD差分系统备份的恢复,支持Ghost备份的恢复。
另有纯DOS版本,仅仅支持Ghost备份 ...
yu2n 发表于 2015-1-8 09:40
复杂问题简单化。
还是利用现成的启动软件吧。
不过是改造成运行1个bat 文件,就全自动安装到xp启动菜单上了。不需要频繁用鼠标手动点击好多次了。- @echo off
- if "%1" == "h" goto begin
- mshta vbscript:createobject("wscript.shell").run("%~fs0 h",0)(window.close)&&exit
- :begin
- rem 下边开始写批处代码了
-
-
- set timeout=3
- set "rar=%ProgramFiles%\WinRAR\WinRAR.exe"
-
- if exist c:\boot.ini goto ntldr
- exit
-
-
- :ntldr
- bootcfg /timeout %timeout% >nul 2>nul
- attrib -s -r -h c:\boot.ini
-
- echo. >>c:\boot.ini
-
- findstr /c:"WDOS工具箱" c:\boot.ini >nul || >>c:\boot.ini echo C:\wzldr="WDOS工具箱"
- findstr /c:"通用 PE 工具箱" c:\boot.ini >nul || >>c:\boot.ini echo C:\WXPE\PELOAD=通用 PE 工具箱
-
- if not exist c:\WZBOOT "%rar%" x -y "WDOS工具箱.rar" c:\
- if not exist c:\PETools "%rar%" x -y "通用 PE 工具箱.rar" c:\
-
- attrib +s +r +h c:\boot.ini
-
- exit
复制代码
|