title: list com ports available in VBscript or HTML
body: <p>Hi I am running a simple VBscript program which sends a signal to a com port which is made by a USB>serial converter.  This number changes each time I plug it in, and for ease of use I'd like an interactive window to popup with the available com ports rather than making the user look them up and type them in manually.</p>
  
  <p>I was wondering if there was a way to get the available com ports using a VBscript or HTML code then feed it to a radio button option in a ie window.  I've seen several instances on how to get it with C#, but want to keep this code using VBscript and HTML.</p>
  
  <p>Right now I am using devcon to get the information in a CMD window, but I don't know how to port it back to my script.  </p>
  
  <pre><code>Set objShell = wscript.CreateObject("Wscript.Shell")
  strCommand = "elevate cmd /k c:/devcon listclass PORTS"
  objShell.Run strcommand, 1, true
  </code></pre>
  
  <p>I tried using > to write the information to a text file, but it ignores that part of the script for some reason...  and attempts to send the command through .sendkeys has failed too .sendkeys doesn't work with windows8 cmd.</p>