CODE: [Copy to clipboard]for /f "tokens=1 delims=< skip=1" %%h in ('nbtstat -a %1 ^|find "03"') do ( set ok=%%h set ok=!ok: =! echo !ok! )