【发布时间】:2015-01-25 09:31:16
【问题描述】:
在 Python 中,您不必使用文件,您可以指定 -c "..." 并通过命令行上的字符串将 Python 命令提供给 Python 解释器。
我可以用 vbscript 达到同样的效果吗? 我见过需要您使用批处理脚本的解决方案, 但是如果我在一个写入权限为零的系统上呢?
根据@Syberdoor 的回答,我可以运行这个:
mshta vbscript:Execute("dim result:result=InputBox(""message"",""title"",""input"")(window.close):echo result")
但它仍然不会在控制台中打印结果。
【问题讨论】: