【发布时间】:2011-12-05 10:20:37
【问题描述】:
我想执行一个命令并解析 shell 的输出。我在 TestComplete 中使用 JScript。我已经发现我可以使用 WScript.shell 运行命令。但我不知道如何解析我的 JScript 中的输出。有什么提示吗?
var shell = new ActiveXObject("WScript.shell");
if (shell)
{
shell.run("myCommandIWantToParseOutputfrom.sh");
}
【问题讨论】:
标签: command-line activexobject jscript