蝙蝠到EXE转换器 - 转换为EXE后代码不起作用



将 bat 文件转换为 exe 后,代码不再工作。需要 exe 在 Windows XP 上运行。为什么转换为 exe 后代码不起作用?这是代码:

@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

谢谢。

  1. 停止使用 @ 隐藏输出。

  2. 在最后一行停顿一下。

  3. 阅读它的内容。