I am trying to access a com port through vbscript. All I need to do is
verify that something is plugged into the com port- the only thing
that will be plugged in is a handheld barcode scanner. I don't have
mscomm licensing so I would prefer to not have to go down that route.
Any help at all would be great... code examples would be stupdendous!
Thanks.

-James

Re: Determing if something is plugged into a com port. by Owen

Owen
Mon Jul 23 17:54:19 CDT 2007

On Jul 22, 8:56 pm, jamesrhan...@gmail.com wrote:
> I am trying to access a com port through vbscript. All I need to do is
> verify that something is plugged into the com port- the only thing
> that will be plugged in is a handheld barcode scanner. I don't have
> mscomm licensing so I would prefer to not have to go down that route.
> Any help at all would be great... code examples would be stupdendous!
> Thanks.
>
> -James

I was able to dig up this from scriptomatic (download it if you don't
have it already. search for it on microsoft.com)

http://msdn2.microsoft.com/en-us/library/aa394358.aspx

There is a PortType and Status under Win32_PortConnector. This seems
to contain what you want.

Hope this helps!
Owen