Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I pipe the output of the serial port to a file in Windows?

In Linux the command would be:

cat /dev/ttyS0 > /opt/logs/Serial.log
share|improve this question

migrated from stackoverflow.com Apr 10 '10 at 5:16

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers

I guess:

copy com1: somefile.log

There is also con: and nul: special device as I remember. But that was true for times when DOS was more popular. Probably now you have to create some strange file/folder with extension where in curly brakets is placed some scary long sequence of numbers and letters :)

share|improve this answer
    
It works, I've tried just today –  FerranB Mar 25 '11 at 17:56
add comment

I find more usefull this one:

type com1: >> data.log

The main advantages versus a copy is that you can append data to an existing file and you can open the file with another application (notepad) to see the contents.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.