Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
C:/>set /a hname = hostname0C:/>echo %hname%0
for /f "tokens=* delims= " %%a in ('hostname') do set HOST=%%a
C:\>for /f %a in ('hostname') do @echo %apupp-c92f25ed23C:\>echo %userdomain%PUPP-C92F25ED23
C:\>echo %userdomain%PUPP-C92F25ED23