恢复
@ECHO OFF PUSHD %~DP0 taskkill /f /im notepad*>NUL 2>NUL Md "%WinDir%\System32\test_permissions" 2>NUL||(Echo 请使用右键管理员身份运行&&Pause >NUL&&Exit) Rd "%WinDir%\System32\test_permissions" 2>NUL SetLocal EnableDelayedExpansion reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /f reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /f exit
设置
@ECHO OFF PUSHD %~DP0 taskkill /f /im notepad*>NUL 2>NUL Md "%WinDir%\System32\test_permissions" 2>NUL||(Echo 请使用右键管理员身份运行&&Pause >NUL&&Exit) Rd "%WinDir%\System32\test_permissions" 2>NUL SetLocal EnableDelayedExpansion if not exist "%WinDir%\SysWOW64" reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d "\"%~dp0Notepad2.exe\" /z" /f if exist "%WinDir%\SysWOW64" reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d "\"%~dp0Notepad2_x64.exe\" /z" /f exit
© 著作权归作者所有
下一篇: 华硕路由器 ASUS
文章评论(0)