After converting the bat file to exe, the code doesn't work anymore. Need the exe to run on Windows XP. Why the code doesn't work after convertion to exe? Here is the code:
@rasdial VPN user password
@setlocal
@for /f "tokens=1-2 delims=:" %%i in ('ipconfig ^| find "IP Address" ^| find "172.23"') do set GETIP=%%j
@route add 172.21.233.0 mask 255.255.255.0 %GetIp%
@endlocal
Thank you.