Link to home
Start Free TrialLog in
Avatar of lorddef
lorddef

asked on

Need to read from the serial port into a text file, simple .exe

Right does anybody know of a simple app out there that will allow me to read from the serial port straight into a text file? or straight into the application then save the data as a text file?

This is a real ball-ache. I could write an app in java but the user at the other end would then have to install the commapi package or dlls etc and set up their classpaths etc.

All I need is an exe that I can send them to do the job with no installing of dlls or .jar etc.

Anyone know of one?
Avatar of tkrabec
tkrabec

MODE COM1: baud=4800 parity=N data=8 stop=1
TYPE command > COM1
COPY COM1 text.txt

I've done the above type of thing before in win95.  just put it into a batchfile and you're set you do have to do a ctrl+c to kill it tho.  not sure if this will work for your client.

-- Tim
The "Terminal" from windows 3.11 could do this, if I get you right, and one would guess Hyperterminal can as well.
/RID
Avatar of lorddef

ASKER

did you get that from here tkrabec:

http://www.computing.net/dos/wwwboard/forum/14336.html

Anyway TYPE command > COM1

... doesnt work here
ASKER CERTIFIED SOLUTION
Avatar of tkrabec
tkrabec

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lorddef

ASKER

Well I couldnt get the batch file method working, but I found the perfect app for the job myself in the end. ComCap is a simple little win32 app that logs all data from the serial port to a file. Magic.

Cheers for your attempts people.