Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for %%G in ("C:\Program Files (x86)\Test Folder\*.exe") do (
- netsh advfirewall firewall add rule name="Blocked With Batchfile %%G" dir=in action=block program="%%G" enable=yes profile=any
- netsh advfirewall firewall add rule name="Blocked With Batchfile %%G" dir=out action=block program="%%G" enable=yes profile=any
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement