@echo off

set PADSYPATH=C:\Program Files (x86)\PadsyClient

echo Padsy path: "%PADSYPATH%"
pause
echo *
rem @echo on
echo Setting Firewall for PadsyClient
netsh advfirewall firewall add rule name=PadsyClient.exe dir=in action=allow program="%PADSYPATH%\PadsyClient.exe" enable=yes profile=any
netsh advfirewall firewall add rule name=PadsyClient.exe dir=out action=allow program="%PADSYPATH%\PadsyClient.exe" enable=yes profile=any
echo Setting Firewall for PadsyJava
netsh advfirewall firewall add rule name=PadsyClient.java dir=in action=allow program="%PADSYPATH%\jre\bin\java.exe" enable=yes profile=any
netsh advfirewall firewall add rule name=PadsyClient.java dir=out action=allow program="%PADSYPATH%\jre\bin\java.exe" enable=yes profile=any
echo Setting Firewall for PadsyJavaw
netsh advfirewall firewall add rule name=PadsyClient.javaw dir=in action=allow program="%PADSYPATH%\jre\bin\javaw.exe" enable=yes profile=any
netsh advfirewall firewall add rule name=PadsyClient.javaw dir=out action=allow program="%PADSYPATH%\jre\bin\javaw.exe" enable=yes profile=any

timeout /t 10
