ユーザーがログインしていない場合、またはスクリプトがローカル システムとして実行されている場合、VBScript 内の SendKeys が機能しないことに気付きました。
例:
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "telnet 192.168.1.50"
WshShell.SendKeys "{ENTER}"
WshShell.SendKeys "some telnet command"
WshShell.SendKeys "{ENTER}"
WshShell.SendKeys "another telnet command"
WshShell.SendKeys "{ENTER}"
アプリケーションにキーを送信する他の方法はありますか? SendInput は .vbs ファイルでは機能しないようです...