Previous Topic: ConstantsNext Topic: Retrieving Asset Management Constants


Desktop Management Predefined String Constants

The Desktop Management Scripting language includes the following predefined string constants:

TRUE

Specifies a Boolean value of true.

FALSE

Specifies Boolean value of false.

PARAMCNT

Specifies the number of arguments with which the script was invoked.

NEWLINE$

Specifies a New line.

OSVERSION

Specifies the operating system version.

OSSYSTEM

Specifies the name of the operating system.

WINDIR

Specifies the location of the windows directory (Windows only).

WINDOWSDIR

Specifies the Location of the windows directory (Windows only).

Time$

Specifies the string representation of current system time.

Format
hh:mm:ss
Date$

Specifies the string representation of current system date.

Format
mm/dd/yy
DateLoc$

Specifies the string representation of current system date in the localized format.

Now$

Specifies the combination of Time$ and Date$.

Format
mm/dd/yyyy hh:mm:ss
NowLoc$

Specifies the date and time in the localized format.

Time

Specifies the current system time.

Format
Type SysTime
	Hour as Integer
	Minute as Integer
	Second as Integer
End Type
Date

Specifies the current system date.

Format
Type SysDate
	Year as Integer
	Month as Integer
	Day as Integer
	DayOfWeek as Integer
EndType
Now

Specifies the current system date and time.

Format
Type DateTime
	Year as Integer
	Month as Integer
	Day as Integer
	DayOfWeek as Integer
	Hour as Integer
	Minute as Integer
	Second as Integer
EndType
OSTYPE

Specifies a decimal number identifying the operating system.

OSSTRING

Specifies a string identifying the operating system.

SCRIPTVERSION

Specifies a string identifying the version of the script interpreter.

WINSYSDIR

Specifies the system directory of the Windows system.