Hostname: Difference between revisions

Content added Content deleted
(add JavaScript, ws)
(added PowerBASIC)
Line 176: Line 176:
=={{header|Pop11}}==
=={{header|Pop11}}==
lvars host = sys_host_name();
lvars host = sys_host_name();

=={{header|PowerBASIC}}==
This retreives the localhost's name:

<lang powerbasic>HOST NAME TO hostname$</lang>

This attempts to retreive the name of any given machine on the network:

<lang powerbasic>HOST NAME ipAddress& TO hostname$</lang>


=={{header|PowerShell}}==
=={{header|PowerShell}}==