You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
217 B
Batchfile

if "%4"=="" GOTO NUR3
netsh firewall add portopening protocol = %1 port = %2 name = %3 scope = %4 ENABLE
GOTO ENDE
:NUR3
netsh firewall add portopening protocol = %1 port = %2 name = %3 scope = ALL ENABLE
:ENDE
ECHO