netsh firewall add allowedprogram C:file1.exe
netsh firewall delete allowedprogram C:file1.exe
netsh firewall add portopening TCP 4899 name
netsh firewall delete portopening TCP 4899
netsh firewall add allowedprogram C:file1.exe
netsh firewall delete allowedprogram C:file1.exe
netsh firewall add portopening TCP 4899 name
netsh firewall delete portopening TCP 4899