|
保存 QL-EWSTG.BAT 运行后解决版本冲突等意外情况。
@echo off
%1 mshta vbscript:createobject("shell.application").shellexecute("""%~0""","::",,"runas",1)(window.close)&&exit /b
pushd "%CD%"
CD /D "%~dp0"
mode con cols=90 lines=90
ECHO. 清理版本冲突。EWSTG,ESDSNATBI 清理一键自动备份恢复
CD /D%TEMP%\
ATTRIB *.* -h -r -s
DEL *.* /F /Q /S /A
RD /S /Q %TEMP%\
for %%a 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 (
SET SNADIR=%%a:\SNAP\
SET DIRSD=%%a:
SET DIRSDWJ=%%a:
SET WZ=%SNADIR%SYSC%XX1%.%WE%
SET WZ1=%SNADIR%SYSC%XX1%.%WE%
IF exist %%a:\SNAP\ GOTO MENU2
IF exist %%a: SET n1=%%a
)
SET DIRS=%n1%
SET /P DIRS= 请输入备份存放工作盘(C-%DIRS%)字母回车:
SET SNADIR=%DIRS%:\SNAP\
MD %SNADIR%
GOTO MENU2
EXIT
:MENU2
CD /D%SNADIR%
DEL CONFIG.TXT
|
|