我在 Windows 2008 上启用了 telnet 客户端功能,并尝试从 Perl 脚本启动它:
perl -e "system('c:\windows\system32\telnet localhost')"
然后我收到这样的错误:
'c:\windows\system32\telnet' is not recognized as an internal or external command,
operable program or batch file.
我可以从“cmd”终端运行它,或者,如果我将 telnet.exe 复制到本地目录,它可以启动。我检查了c:\windows\system32下telnet.exe的权限,没有特别发现。
有人可以帮我处理这个案子吗?非常感谢!