Hostname: Difference between revisions

no edit summary
No edit summary
Line 514:
print( socket.dns.gethostname() )</lang>
 
=={{header|M2000 Interpreter}}==
<lang M2000 Interpreter>
Module Host {
\\ on way
Print computer$
\\ second way
Declare objNetwork "WScript.Network"
With objNetwork, "ComputerName" as cName$
Print cName$, cName$=Computer$
Declare objNetwork Nothing
}
Host
</lang>
=={{header|Maple}}==
<lang Maple>Sockets:-GetHostName()</lang>
Anonymous user