I need to execute the command “ver” in my vbs to see the version of my Operating System, and i don’t know how make it.
I tried this, but dont work:
Function ExecuteWithTerminalOutput(cmd)
Set shell = WScript.CreateObject("WScript.Shell")
Set Exec = shell.Exec("ver")
End Function
Try something like this:
EDIT:
Well then you can redirect output to a file and then read the file: