title: I need execute a command line in a Visual Basic Script
body: <p>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.</p>
  
  <p>I tried this, but dont work:</p>
  
  <pre><code>Function ExecuteWithTerminalOutput(cmd)
  Set shell = WScript.CreateObject("WScript.Shell")
  Set Exec =  shell.Exec("ver")
  End Function
  </code></pre>