October 31, 2022 at 5:12 AM, "Bo Berglund via lazarus" 
<lazarus@lists.lazarus-ide.org> wrote:

> 
> When I am at it:
> Is there a way on Windows to enumerate the existing serial ports so I can put 
> a
> selector list on the form?
> 

You can use Powershell for that:

[System.IO.Ports.SerialPort]::getportnames()


cheers
Samps
Danish developer in Australia


> -- 
> Bo Berglund
> Developer in Sweden
> 
> -- 
> _______________________________________________
> lazarus mailing list
> lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to