Macro Reference - System Info

Below is a list of System information macros.

The full list of macros can be found here.

 

Macro Description


@OSLang
Returns code denoting OS Language.  See Appendix for possible values.
@OSType
Returns "WIN32_NT" for NT/2000/XP/2003 and returns "WIN32_WINDOWS" for 95/98/Me
@OSVersion
Returns one of the following: "WIN_2003", "WIN_XP", "WIN_2000", "WIN_NT4", "WIN_ME", "WIN_98", "WIN_95"
@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.


@DesktopWidth
Width of the desktop screen in pixels.  (vertical resolution)
@DesktopHeight
Height 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.