_Name$ and ComputerName, UserName, WinCompany, WinUser Properties (App)

Purpose

Returns the name of the client PC and the login name.

Syntax

$ = _Name$

$ = App.ComputerName
$ = App.UserName
$ = App.WinCompany
$ = App.WinUser

Description

Returns the name of the PC as it is known on a LAN. Without a network installation _Name$ returns an empty string. The App.ComputerName property is identical.

App.UserName returns the user that is currently logged on to the system.

The App properties WinCompany and WinUser return the company and user owning the Windows system.

Example

Print "The name of the PC is: "; _Name$

Print "The App name of the PC is: "; App.ComputerName

Print "The App login name is: "; App.UserName

Print "The Company owning Windows is: "; App.WinCompany

Print "The User owning Windows is: "; App.WinUser

See Also

App Object

{Created by Sjouke Hamstra; Last updated: 20/09/2014 by James Gaite}