Entry
BBCBASIC: Windows: Network: Socklib: Computer: Name: How to view the computer name of your computer?
Feb 5th, 2006 12:04
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 05 February 2021 - 07:22 pm -------------------
BBCBASIC: Windows: Network: Socklib: Computer: Name: How to view the
computer name of your computer?
---
Steps: Overview:
1. -Create the following program
--- cut here: begin --------------------------------------------------
INSTALL @lib$+"SOCKLIB"
PROC_initsockets
PRINT "host name = " + FN_gethostname
PROC_exitsockets
END
--- cut here: end ----------------------------------------------------
2. -If you run this program it will e.g. show
hostname = MyComputerName
===
Tested successfully on
Microsoft Windows XP Professional (service pack 2),
running BBCBASIC for Windows v5.01a
===
[help: program: BBCBASIC for Windows v5.01a or higher: search
for 'socklib']
===
Internet: see also:
---
----------------------------------------------------------------------