Constants

Scripting Library Global Constants


Job Constants:

Constant

Type

Description

Error_success

Numeric

Successfull function call

O_Read

Numeric

Read-only access of object

O_Write

Numeric

Full access of object

O_append

Numeric

Append-Access of object


Registry Constants:

Constant

Type

Description

HKEY_CLASSES_ROOT

Numeric

Registry hive root

HKEY_LOCAL_MACHINE

Numeric

Registry hive root

HKEY_CURRENT_USER

Numeric

Registry hive root

HKEY_USERS

Numeric

Registry hive root

HKEY_CURRENT_CONFIGNumericRegistry hive root available from CI5.1 Build 105

REG_SZ

Numeric

Typecode for string

REG_EXPAND_SZ

Numeric

Typecode for expanded string value

REG_BINARY

Numeric

Typecode for binary value

REG_DWORD

Numeric

Typecode for numeric value

REG_MULTI_SZ

Numeric

Typecode for multi string value

REG_QWORDNumericTypecode for numeric value
STR_REG_SZStringTypecode for string value
STR_REG_EXPAND_SZStringTypecode for expanded string value
STR_REG_BINARYStringTypecode for binary value
STR_REG_DWORDStringTypecode for numeric value
STR_REG_MULTI_SZStringTypecode for multi string value
STR_REG_QWORDStringTypecode for numeric value


FileSystem Constants:

Constant

Type

Permissions

Description

FILE_NORMAL

Numeric

special***

Normal file. No attributes are set

FILE_READONLY

Numeric

read/writeRead-only file.

FILE_HIDDEN

Numeric

read/writeHidden file.

FILE_SYSTEM

Numeric

read/write

System file.

FILE_DIRECTORY

Numeric

read-only**

Folder or directory.

FILE_ARCHIVE

Numeric

read/write

File has changed since last backup.

FILE_COMPRESSED

Numeric

read-only**

Compressed file.

*  Only clears r/w attributes. Will not clear read-only attributes

** Read-only attributes cannot be set from VBScript


Read more


MSI Status

ConstantTypeValue
MSI_BAD_CONFIGURATIONStringBad configuration.
MSI_INVALID_ARGUMENTStringInvalid argument.
MSI_NOT_INSTALLEDStringThe package is not installed.
MSI_IS_ADVERISED_NOT_INSTALLEDStringThe package is advertised, but not installed.
MSI_IS_ABSENTStringThe package is absent.
MSI_IS_INSTALLEDStringThe package is installed.


Service Controller Status

ConstantTypeValue
SCS_RunningStringRunning
SCS_StoppedStringStopped
SCS_PausedStringPaused
SCS_StartPendingStringStartPending
SCS_StopPendingStringStopPending
SCS_PausePendingStringPausePending
SCS_ContinuePendingStringContinuePending


Service Start Mode

ConstantTypeValue
SSM_BootStringBoot
SSM_SystemStringSystem
SSM_AutomaticStringAutomatic
SSM_AutomaticDelayedStringAutomaticDelayed
SSM_ManualStringManual
SSM_DisabledStringDisabled


Execution Context

ConstantType

Value

EC_UNKNOWNStringUNKNOWN 'Initial undefined value'
EC_32On32String32On32
EC_32On64String32On64
EC_64On64String64On64


Workstation Operating Systems

ConstantTypeValue
OS_UNKNOWNStringUnknown
OS_WINDOWS_NT40StringWindows NT 4.0 Workstation
OS_WINDOWS_2KStringWindows 2000
OS_WINDOWS_XPStringWindows XP Professional
OS_WINDOWS_XP_X64StringWindows XP Professional x64
OS_WINDOWS_VISTAStringWindows Vista
OS_WINDOWS_7StringWindows 7
OS_WINDOWS_8StringWindows 8
OS_WINDOWS_81StringWindows 8.1
OS_WINDOWS_10StringWindows 10


Server Operating Systems

ConstantTypeValue
OS_WINDOWS_NT40_SERVERStringWindows NT 4.0 Server
OS_WINDOWS_NT40_DOMAINStringWindows NT 4.0 Domain Controller
OS_WINDOWS_2K_SERVERStringWindows 2000 Server
OS_WINDOWS_2K_ADVANCED_SERVERStringWindows 2000 Advanced Server
OS_WINDOWS_SERVER_2003StringWindows Server 2003
OS_WINDOWS_SERVER_2008StringWindows Server 2008
OS_WINDOWS_SERVER_2008_R2StringWindows Server 2008 R2
OS_WINDOWS_SERVER_2012StringWindows Server 2012
OS_WINDOWS_SERVER_2012_R2StringWindows Server 2012 R2
OS_WINDOWS_SERVER_2016StringWindows Server 2016