Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プロセスを強制終了するvbsスクリプトがあります。このスクリプトには、引数としてpidが用意されています。このスクリプトをexpectスクリプトから生成したいと思います。しかし、私が書くとき:
spawn KillProcess.vbs pid_to_kill
「そのようなファイルやディレクトリはありません」というエラーが表示されます。ところで、私は期待するのは初めてです:)
しかし、私は何が間違っているのですか?
vbsスクリプトは、expectスクリプトと同じフォルダーにあります。
おそらく、次のコマンドでVBSプログラムを起動する必要がありますcscript。
cscript
spawn cscript KillProcess.vbs $pid_to_kill
http://ss64.com/vb/cscript.html