In my case my Arduino Uno is connected to COM6. With the next batch script I get that string
@echo off setlocal for /f "tokens=1* delims==" %%I in