Macro Reference - System Info

Below is a list of System information macros.

The full list of macros can be found here.

 

Macro Description
@CPUArch Returns "X86" when the CPU is a 32-bit CPU and "X64" when the CPU is 64-bit.
@KBLayout Returns code denoting Keyboard Layout. See Appendix for possible values.
@OSArch Returns one of the following: "X86", "IA64", "X64" - this is the architecture type of the currently running operating system.
@OSLang
Returns code denoting OS Language.  See Appendix for possible values.
@OSType
Returns "WIN32_NT" for NT/2000/XP/2003/Vista/2008.
@OSVersion
Returns one of the following: "WIN_2008", "WIN_VISTA", "WIN_2003", "WIN_XP", "WIN_2000".
@OSBuild
Returns the OS build number.  For example, Windows 2003 Server returns 3790
@OSServicePack
Service pack info in the form of "Service Pack 3" or, for Windows 95, it may return "B"
@ComputerName
Computer's network name.
@UserName
ID of the currently logged on user.
@IPAddress1
IP address of first network adapter.  Tends to return 127.0.0.1 on some computers.
@IPAddress2
IP address of second network adapter.  Returns 0.0.0.0 if not applicable.
@IPAddress3 IP address of third network adapter.  Returns 0.0.0.0 if not applicable.
@IPAddress4 IP address of fourth network adapter.  Returns 0.0.0.0 if not applicable.
@DesktopHeight
Height of the desktop screen in pixels.  (vertical resolution)
@DesktopWidth
Width of the desktop screen in pixels.  (horizontal resolution)
@DesktopDepth Depth of the desktop screen in bits per pixel.
@DesktopRefresh Refresh rate of the desktop screen in hertz.