关闭windows 防火墙
C:\Windows\System32\netsh.exe advfirewall set allprofiles state off
打开windows 防火墙
C:\Windows\System32\netsh.exe advfirewall set allprofiles state on
上面两行命令分别设置成快捷方式,且以管理员方式运行,单击即可实现打开、关闭的功能。