M
Matt Solob
I want to read the name of the local computer and do something depending from
the result. In other words I want to do something like this:
find "mycom234" %SYSTEMVARIABLEWHICHCONTAINSCOMPNAME% >nul
if %errorlevel%==0 (
Echo I am on a computer whose name contains "mycom234"
) else (
Echo I am on a computer whose name contains NOT "mycom234")
However which system variable contains the computer name?
How do I do this otherwise?
Matt
the result. In other words I want to do something like this:
find "mycom234" %SYSTEMVARIABLEWHICHCONTAINSCOMPNAME% >nul
if %errorlevel%==0 (
Echo I am on a computer whose name contains "mycom234"
) else (
Echo I am on a computer whose name contains NOT "mycom234")
However which system variable contains the computer name?
How do I do this otherwise?
Matt