- @echo off
- (
- echo;Windows Registry Editor Version 5.00
- echo;
- for %%i in (*.txt) do (
- for /f "tokens=*" %%j in ('type "%%i"') do (
- echo;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\%%~nxj]
- echo;"Debugger"="全盘禁止%%j"
- echo;
- )
- )
- ) > a.reg
-
- Rem regedit /s a.reg
- pause
复制代码
|