<< back to sysax.com Product page

15.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.

Exhibit 15.3. Syntax of command for getting the local computer name

getcompname <user variable>;

An example is

Exhibit 15.4. Example for using the command for getting the local computer name

getcompname ~comp_name; #get the name of this computer