I have a program giving me output like below.
Listing 3 device(s) for setup class "Ports" (Ports (COM & LPT)).
USB\VID_067B&PID_2303\5&164808BA&0&3 : Prolific USB-to-Serial Comm Port (COM3)
USB\VID_068B&PID_2304\5&164808BA&0&3 : Prolific USB-to-Serial Comm Port (COM4)
USB\VID_069B&PID_2305\5&164808BA&0&3 : Prolific USB-to-Serial Comm Port (COM6)
I would like to get the COM# value out and assign it to a variable using vbscript like so
P1=COM3
P2=COM4
P3=COM6
The persona this link http://vbcity.com/forums/t/154919.aspx is getting the output I want using the line.
System.IO.Ports.SerialPort.GetPortNames
but I am not sure how to implement this in my script.
Thanks