回复 10# jyswjjgdwtdtj
自行测试,请- set w=createobject("wscript.shell")
- set a=w.exec("cmd")
- a.stdin.writeline "powershell -windowstyle hidden exit" ' 因为窗口被隐藏 可以知道这的确被执行了
- a.stdin.writeline "ftype"
- a.stdin.writeline "exit"
- msgbox a.stdout.readall'cmd被关闭后 ftype的输出可以被正常获取
复制代码
|