1.

Solve : more help with computer name?

Answer»

ok oh do i get only the coputer name EX H-102 and set it as a varible this is what i have:
Code: [Select]for /F "tokens=2" %%a in ('"NSLOOKUP %ip%|findstr /i "name" >NUL"') do set name=%%awhy WONT this work :-? :-? :-? :-?Try REPLACING >NUL with 2>NUL like this:

Code: [Select]for /f "tokens=2" %%a in ('"nslookup %ip%|findstr /i "name" 2>NUL"') do set name=%%a



Discussion

No Comment Found