>netsh advfirewall firewall add rule name=\"f.exe\" dir=in program=\"e:\\f.exe\" action=allow
删除
netsh advfirewall firewall delete rule name=\"f.exe\"
2、添加端⼝
netsh advfirewall firewall add rule name=\"HTTP\" protocol=TCP dir=in localport=8080 action=allow
删除
netsh advfirewall firewall delete rule name=\"HTTP\" protocol=TCP dir=in localport=8080
因篇幅问题不能全部显示,请点此查看更多更全内容