|
原帖由 oym2007 于 2007-11-5 08:13 PM 发表
按这方法,虽然能备份,但备份完退出后,整个PE的应用程序全不用了,提示非WIN32 程序!!!
YYQ572的P处理剽窃一下,根据你的PE修改之
@echo off
set op_file=""
For %%I In (Z Y X W V U T S R Q P O N M L K J I H G F E D C A) Do if exist %%I:\MINIPE\OP.WIM set op_file=%%I:
MD %op_file%\YesOrNO_Write_YYQ
if exist %op_file%\YesOrNO_Write_YYQ goto YesOrNoMoun
goto NoMoun
:YesOrNoMoun
color 4f
cls
echo.
echo.
echo 警告 PE外置程序在 %op_file% 盘,如果对%op_file% 盘进行GHOST操作,可能会失败
echo =================================================================
echo.
echo.
echo [1] 不理会,直接运行 B: 盘的GHOST32
echo.
echo.
echo [2] 把GHOST32复制到X: 盘,暂停使用%op_file%盘外置程序
echo.
echo.
echo -----------------------------------------------------------------
echo [q] 按其他任意键退出
echo =================================================================
echo.
RD %op_file%\YesOrNO_Write_YYQ
set op_file=%op_file%\MINIPE\OP.WIM
set route1=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options
SET Choice=
SET /P Choice= 请选择要进行的操作(1,2,Q),再按回车:
IF /I '%Choice:~0,1%'=='1' GOTO NoMoun
IF /I '%Choice:~0,1%'=='2' GOTO YesMoun
exit
:YesMoun
if not exist %Temp%\GGGHOST.EXE copy /Y B:\外置程序\GHOST11\GGGHOST.EXE %Temp%\
if not exist %Temp%\GHOST32.EXE copy /Y B:\外置程序\GHOST11\GHOST32.EXE %Temp%\
if exist B: PECMD.EXE MOUN ,B:
%Temp%\GGGHOST.EXE
del /q %Temp%\GGGHOST.EXE
del /q %Temp%\GHOST32.EXE
if %op_file% == "" exit
PECMD.EXE MOUN %op_file%,B:,1
goto GhostEnd
:NoMoun
Start B:\外置程序\GHOST11\GGGHOST.EXE
:GhostEnd
exit |
|