China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-26 19:30
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » [Urgent] How do I output a file to a peripheral with DOS commands? View 609 Replies 2
Original Poster Posted 2003-10-16 00:00 ·  日本 东京威力科创
初级用户
Credits 111
Posts 3
Joined 2003-10-16 00:00
22-year member
UID 11335
Gender Male
Status Offline
I want to output a file to a peripheral through the serial port. What DOS command should I use? Can the serial port output data format and baud rate be set? How are the parameters set?
Urgent, please advise, experts. Many thanks!!!
Floor 2 Posted 2003-10-19 00:00 ·  中国 四川 乐山 电信
初级用户
Credits 115
Posts 2
Joined 2003-09-11 00:00
22-year member
UID 9704
Gender Male
Status Offline
If what is connected to your serial port is a serial printer (for example, inserting a serial circuit board into an Epson LQ-1600K to convert it into a serial printer), you can use the following command:

Assume the serial printer is connected to serial port 1

C:\>type config.sys > com1

Explanation: this outputs the contents of the config.sys file on the serial printer.

If for some other reason you need to set parameters such as the serial port output data bits, stop bits, baud rate, etc., you can use the command

C:\>mode /?

to view its help.
Floor 3 Posted 2003-10-20 00:00 ·  日本 东京威力科创
初级用户
Credits 111
Posts 3
Joined 2003-10-16 00:00
22-year member
UID 11335
Gender Male
Status Offline
Forum Jump: