Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.32 KB | None | 0 0
  1. for %%G in ("C:\Program Files (x86)\Test Folder\*.exe") do (
  2.  
  3. netsh advfirewall firewall add rule name="Blocked With Batchfile %%G" dir=in action=block program="%%G" enable=yes profile=any
  4. netsh advfirewall firewall add rule name="Blocked With Batchfile %%G" dir=out action=block program="%%G" enable=yes profile=any
  5.  
  6. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement