【发布时间】:2012-07-15 02:35:32
【问题描述】:
我需要在我的vbs中执行命令“ver”来查看我的操作系统的版本,我不知道如何制作。
我试过了,但是不行:
Function ExecuteWithTerminalOutput(cmd)
Set shell = WScript.CreateObject("WScript.Shell")
Set Exec = shell.Exec("ver")
End Function
【问题讨论】:
标签: command-line vbscript cmd exec