8.4.19 hostname command (displays the host name)
Syntax
hostname
Description
This command displays the current host's host name.
Return codes
Return code |
Meaning |
---|---|
0 |
Normal termination |
1 or greater |
Error termination |
Notes
This command takes no arguments. Any arguments that are specified are ignored during execution of the command.
Example
Display the name of the current host system.
C:\TEMP>%ADSH_OSCMD_DIR%\hostname HOST01