Originally Posted By: tfabris
And the full DOS command to put the query into a variable that I can use elsewhere in the batch file is


...still better in PowerShell:

Code:
$port = ( Get-WmiObject Win32_SerialPort | Where { $_.Description -like '*Arduino*' } | select -first 1 )
_________________________
-- roger