for /f "tokens=*" %%a in ('hostname') do set "hostname=%%a"