This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.
@echo offtitle PPP VPN caller and routing scriptset VPN=RRAS_Nameset VPN_USER=userset VPN_PASS=passecho Calling %VPN%...rasdial %VPN% %VPN_USER% %VPN_PASS%echo Removing old routing...route delete 192.168.222.0echo Applying routing...ipconfig > temp1.txtfindstr "192.168.223." temp1.txt > temp2.txtfor /F "tokens=2 delims=:" %%f in (temp2.txt) do echo VPN client address %%ffor /F "tokens=2 delims=:" %%f in (temp2.txt) do route add 192.168.222.0 mask 255.255.255.0 %%fif exist temp1.txt del temp1.txtif exist temp2.txt del temp2.txtecho Donepause