decorative banner

Previous | Next               Table Of Contents > 9 Accessing system information > 9.2 Getting the local computer name

9.2 Getting the local computer name


The getcompname command gets the name of the computer that the program is running on. The computer name is copied to the specified user variable.

The syntax is

getcompname <user variable>;

An example is

getcompname ~comp_name; #get the name of this computer


Previous | Next