Files
windows-scripts/BlockAllProgramsInThisFolder.bat
2023-03-05 21:08:50 -06:00

9 lines
178 B
Batchfile

@ setlocal enableextensions
@ cd /d "%~dp0"
for /R %%a in (*.exe) do (
netsh advfirewall firewall add rule name="Batch File Blocked %%a" dir=out program="%%a" action=block
)