Question

Locked

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.

2 total posts (Page 1 of 1)  
| 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:
http://support.microsoft.com/kb/60716

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
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1249220953

A bit off-topic, but neat serial port product:
http://www.serial-port-redirector.com/

this lets you forward the serial port over the network

Back to Networks Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums