2

I have a software that outputs some info to a text file. Now I want to redirect that output to a serial port. The file name is hard coded in the software. So I decided to create a symlink to the serial port. The symlink will have the same name as the file. I tried:

mklink file.txt COM1

The symlink was successfuly created but whenever I try to write something to that file.txt, a COM1 file is created in the same directory. So all the output goes to that file instead of the serial port.

Is it possible to create a symlink to a serial port in Windows?

smsrecv
  • 131
  • 2

0 Answers0