Skip to content

Commit ef4180f

Browse files
authored
Create RepairToolForWindows7.bat
1 parent f435460 commit ef4180f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

RepairToolForWindows7.bat

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
@echo off
2+
echo "ClassIsland 修复工具 (适用于 Windows 7 版本)"
3+
if exist "%SystemRoot%\SysWOW64" path %path%;%windir%\SysNative;%SystemRoot%\SysWOW64;%~dp0
4+
bcdedit >nul
5+
if '%errorlevel%' NEQ '0' (goto UACPrompt) else (goto UACAdmin)
6+
:UACPrompt
7+
echo "正在请求管理员权限..."
8+
%1 start "" mshta vbscript:createobject("shell.application").shellexecute("""%~0""","::",,"runas",1)(window.close)&exit
9+
exit /B
10+
:UACAdmin
11+
setx "DOTNET_GCName" "clrgc.dll" /m
12+
setx "DOTNET_EnableWriteXorExecute" "0" /m
13+
echo "修复完成!"
14+
echo "按任意键退出..."
15+
pause >nul
16+
exit

0 commit comments

Comments
 (0)