How do I access the Serial Port using WSH?

By Tink! ·
New to writing WSH scripts. Trying to write one that will read the data coming in through the Serial Port (COM1) and either create a text file (and append with each new string of data) or send that data to an Access DB.

What object, method or property do I use to do this?

EDIT AD Am finding out that the script language is probably pretty archaic. I do not have Visual Studio so I am getting compile errors when trying to run scripts written for Visual Basic or VB.Net. Therefore, I need this script to be strictly in WSH commands, VBScript 5.7 or in VBA (to insert in Access Module).

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

Now this sounds neat

by Slayer_ In reply to How do I access the Seria ...

A friend of mine had to code in C, a data send and receive over serial, creating his own packets, redundancy, etc. How to do that in a higher language though, no idea.

Collapse -

I've never tried this, but:

by robo_dev In reply to How do I access the Seria ...

General info regarding com ports as input:

The challenge may be if it's a single data input, such as a barcode input, or if it's a continuous input data stream.

Some ways to to it in VBScript

A bit off-topic, but neat serial port product:

this lets you forward the serial port over the network

Related Discussions

Related Forums