Search found 2 matches

by Protek
07 Sep 2018 06:21
Forum: DOS Batch Forum
Topic: Firewall Context Menu
Replies: 3
Views: 1115

Re: Firewall Context Menu

Fixed :D For %%F In ('doctor') Do ( Echo Says to the patient, "What seems to be the trouble?" Echo Raising his arm, the patient says, "It hurts when I do this." Echo The doctor says, "Ok lemme help you with" ) Edit: Answer here: https://stackoverflow.com/questions/52200176/firewall-context (Huge Tha...
by Protek
06 Sep 2018 16:44
Forum: DOS Batch Forum
Topic: Firewall Context Menu
Replies: 3
Views: 1115

Firewall Context Menu

Goal I need to add Block Firewall Context Menu For .exe Files. Code Reg Add "HKEY_CLASSES_ROOT\exefile\Shell\Firewall\Command" /T Reg_SZ /D "Elevate.exe CMD.exe /Q /C For %%%%A In (\"%%1\") Do Netsh Advfirewall Firewall Add Rule Name=\"%%~nA\" Dir=Out Action=Block Program=\"%%1\"" This code works p...