ComputerName Property

 

Description

 

Returns the name of the computer system.

 

PowerBASIC Syntax

 

PROPERTY GET ComputerName () AS STRING

 

Return Value

 

BSTR. A string value indicating the name of the computer system.

 

Example [PowerBASIC]

 

#INCLUDE "WSHOM.INC"

 

DIM pWshNetwork AS IWshNetwork

 

pWshNetwork = NEWCOM "WScript.Network"

STDOUT ACODE$(pWshNetwork.ComputerName)

 

Valid XHTML 1.0 Transitional