的主机名命令显示运行它的机器的主机名。 可用性 主机名是一个外部命令,可用于以下Microsoft操作系统,作为hostname.exe。 Windows 2000 Windows XP Windows Vista Windows 7的 Windows 8 Windows 10 主机名语法 主机名 [/?]