Board index » delphi » Which Serial port COM1/COM2 is free?

Which Serial port COM1/COM2 is free?

Hi,
is there a possibility to inquire Win95 which COM-port is available for
data comunication in order to find a free comunication line and to avoid
delphi error messages when selecting an active port?

 

Re:Which Serial port COM1/COM2 is free?


Just in case there is no inquiry, uses try-except.

Rene

Quote
Alfred Schuster wrote:

> Hi,
> is there a possibility to inquire Win95 which COM-port is available for
> data comunication in order to find a free comunication line and to avoid
> delphi error messages when selecting an active port?

Other Threads