Hostname: Difference between revisions

Content added Content deleted
m (→‎PowerBASIC: minor rephrasing)
Line 205: Line 205:
<lang powerbasic>HOST NAME TO hostname$</lang>
<lang powerbasic>HOST NAME TO hostname$</lang>


This attempts to retreive the name of any given machine on the network:
This attempts to retreive the name of an arbitrary machine on the network (assuming ipAddress& is valid):


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