Hey_Arnold

Batch Firewall

Oct 18th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. @ setlocal enableextensions
  2. @ cd /d "%~dp0"
  3.  
  4. for /R %%a in (*.exe) do (
  5.  
  6. netsh advfirewall firewall add rule name="Blocked with Batchfile %%a" dir=out program="%%a" action=block
  7.  
  8. )
Add Comment
Please, Sign In to add comment