我们怎么知道在ms dos系统中是否存在COM端口是否有任何命令..? [英] How can we know COM port is present or not in ms dos system is there any command for it..?

查看:135
本文介绍了我们怎么知道在ms dos系统中是否存在COM端口是否有任何命令..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在ms-dos系统中使用COM端口但是我找不到关于端口的任何信息

所以如果有任何命令请告诉我

我尝试使用模式命令但不能正常工作。



我尝试了什么:



I want to use COM Port in ms-dos system But I can't find any information about the port
So please if any command for it then tell me
I have try to use "mode" command but not working.

What I have tried:

I want to use COM Port in ms-dos system But I can't find any information about the port 
So please if any command for it then tell me 
I have try to use "mode" command but not working.

推荐答案

将其视为文件:将字节写入C中的串行端口广告文件•n。快速,直观的想法和解决方案文档。 [ ^ ]

如果CreateFile失败,则端口不存在。
Treat it like a file: Writing bytes to a serial port in C | ad hocumentation • n. fast, instinctive documentation of ideas and solutions.[^]
If CreateFile fails, the port isn't there.


这篇关于我们怎么知道在ms dos系统中是否存在COM端口是否有任何命令..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆