Contents 

Overview
Fundamentals
Variable declaration
Variable assignment
Adding variables
Setting variables
Include function
Evaluate function
Constants
Arrays
If...then...else Statement
For Statement
Foreach Statement
While Statement
Function definition
Operators
Comments
Performance Profiler
Functions
String processing
Overview
Length
Left
Right
Mid
Trim
TrimLeft
TrimRight
ToUpper
ToLower
Find
FindOneOf
ReverseFind
WildcardCompare
Tokenize
RegularExpressionMatch
RegularExpressionParse
Operator [ ]
Delete
Remove
Replace
MakeReverse
SpanIncluding
SpanExcluding
ToUTF8
FromUTF8
File IO routines
Overview
ReadData
ReadDataToString
WriteData
ReadString
WriteString
AppendString
GetLastFileError
EOF
CloseFile
CreateDir
RemoveDir
ChangeDir
GetCurrentDir
IsFileExist
FileSize
CopyFile
MoveFile
RemoveFile
Seek
SeekToBegin
SeekToEnd
SetFileEncoding
SetUseUnicodeBOM
ListFiles
CountFilesInFolder
MapNetworkDrive
DisconnectNetworkDrive
EnumerateDrives
GetDriveInfo
Time routines
Overview
Sleep
MilliSleep
GetTime
GetTimeString
FormatTime
ConvertToUnixTime
GetTickCount
SNMP management
Overview
SnmpGet
SnmpGetNext
SnmpGetBulk
SnmpSet
GetPduErrorStatus
GetPduErrorString
GetPduErrorIndex
GetVarCount
GetVarAt
CreatePdu
AppendVar
GetVarOID
GetVarResolvedName
GetVarValue
GetVarResolvedValue
GetVarResolvedDescription
GetVarSyntax
CreateVar
GetPduIp
GetPduEnterprise
GetPduTrapCode
GetPduTrapName
GetPduResolvedTrapName
GetPduResolvedTrapDescription
GetPduCommunity
GetPduVersion
SendTrap
ForwardTrap
PrepareTrapPdu
SetMaxPduSize
SNMP MIB functions
Overview
LoadMIB
ResolveOID
GetOidByName
ResolveTrap
UnloadMIB
QuickMibLookup
Cryptography
Overview
Encrypt
Decrypt
CalculateMD5Hash
CalculateSHA1Hash
HMAC
BuildKeyFromPassword
Base64Encode
Base64Decode
CRC16
CRC32
HexStringToByteArray
ByteArrayToHexString
Skype integration functions
Overview
SkypeGetContacts
SkypeSendChatMessage
SkypeSendSMS
SkypeCallAndSpeakText
XML processing
Overview
ReadXml
WriteXml
GetXmlTag
CreateXml
InsertAttr
IsXmlValid
SelectXmlNodes
XslTransform
GetAttrString
GetAttrInt
GetAttrDouble
GetXmlBody
GetXmlAttributes
SetXmlBody
AddChild
GetChildrenCount
GetChildAt
JSON processing
Overview
ParseJSON
ToJSON
FTP functions
Overview
FtpOpen
FtpClose
FtpGetCurrentDir
FtpSetCurrentDir
FtpCreateDir
FtpRemoveDir
FtpGet
FtpPut
FtpRemoveFile
FtpRenameFile
FtpListFiles
FtpCountFilesInFolder
TFTP functions
Overview
TFTPGet
TFTPPut
Networking functions
Overview
HttpPing
HttpGet
HttpPost
OpenTCPConnection
OpenUDPSocket
SendTCPData
SendUDPData
IsDataAvailable
ReadTCPData
ReadUDPData
CloseSocket
TCPListen
TCPAcceptConnection
GetHostByAddress
GetAddressByName
DnsQuery
SendMail
SendMailEx
SendHtmlMail
TestSMTPConnection
GetHostName
GetHostDnsSuffix
GetSocketName
SetSocketOption
TestPOP3Connection
POP3GetStats
POP3 Mail Client Example
Ping
TraceRoute
GetMacAddress
EnumerateSharedResources
Working with serial ports and USB HID devices
Overview
OpenSerialPort
CloseSerialPort
IsSerialDataAvailable
ReadSerialData
WriteSerialData
WriteSerialControlChar
SetSerialFlowControl
ClearSerialDTR
ClearSerialRTS
SetSerialDTR
SetSerialRTS
SetSerialXOFF
SetSerialXON
SetSerialBreak
ClearSerialBreak
GetSerialModemStatus
USBOpen
USBClose
USBWriteFeatureReport
USBReadFeatureReport
USBWriteData
USBReadData
USBEnumerateDevices
USBGetFeatureReportLength
Working with Ginkgo USB-I2C adapter
Overview
USBAdapterOpen
USBAdapterClose
USBAdapterBoardInfo
USBAdapterSetPins
USBAdapterResetPins
USBAdapterSetInput
USBAdapterSetOutput
USBAdapterSetOpenDrain
USBAdapterReadGPIO
USBAdapterGetErrorString
USBAdapterSetReadBufferSize
USBAdapterInitI2C
USBAdapterInitTimeConfig
USBAdapterInitADC
USBAdapterInitPWM
USBAdapterInitCNT
USBAdapterInitUART
USBAdapterReadI2C
USBAdapterReadSlaveI2C
USBAdapterReadADC
USBAdapterReadUART
USBAdapterWriteI2C
USBAdapterWriteSlaveI2C
USBAdapterWriteUART
USBAdapterSetPWMPulse
USBAdapterSetPWMPeriod
USBAdapterStartPWM
USBAdapterStopPWM
USBAdapterSetCounter
USBAdapterStartCounter
USBAdapterGetCounter
USBAdapterStopCounter
Working with GSM modems
Overview
SendSMS
RetrieveAllSMSMessages
RetrieveUnreadSMSMessages
DeleteSMSMessage
DeleteAllSMSMessages
Working with zip archives
Overview
ZipFiles
UnzipFiles
AddFileToZip
AddFolderToZip
RemoveFileFromZip
ListFilesInZip
UnzipFile
Mathematical routines
Overview
abs
acos
asin
atan
CalculateScaleFactor
cos
cosh
exp
IsNAN
log
log10
max
mod
pow
ScaleArray
sin
sinh
sqrt
tan
tanh
Charts
Overview
CreateGauge
CreatePieChart
CreateBarChart
CreateLineChart
CreateXYLineChart
Database Interface
Overview
DBOpen
DBClose
DBExecuteSQL
DBSelect
DBInsertSelect
DBGetSQLStatus
DBGetSQLErrorString
CompactAccessDB
GetDataSources
CreateDataSource
RemoveDataSource
DBSetLoginTimeout
DBSetQueryTimeout
Using in-memory cache
Overview
AddCacheEntry
RemoveCacheEntry
RemoveAllCacheEntries
GetCacheEntriesCount
CacheLookup
FindEntryInCache
CacheLoad
CacheSave
CacheToString
Round Robin Databases
Overview
RrdCreate
RrdUpdate
RrdRemove
RrdFetch
RrdGetCurrentValue
Event Log functions
Overview
EventLogGetNumberOfRecords
EventLogGetOldestRecord
EventLogReadRecord
EventLogWaitForEvent
EventLogWriteRecord
Service Control Manager
Overview
SCMEnumerateServices
SCMGetServiceInfo
SCMStartService
SCMStopService
Parameter Files
Overview
GetParameterCount
GetParameterName
GetParameterType
GetParameterValue
GetParameterDisplayName
GetParameterDescription
GetParameterEnumValues
GetParameterEnumValue
GetEnumValueNameFromInt
Process management functions
Overview
ExecuteCommand
RunCommand
FindProcess
GetProcesses
RedirectOpen
RedirectClose
RedirectGetStdOut
RedirectGetStdError
RedirectSendInput
GetProcessorUsage
GetMemoryUsage
WMI functions
Overview
WMIOpen
WMIClose
WMIQuery
WMIGetErrorStatus
Short Message Peer-to-Peer (SMPP)
Overview
SmppOpen
SmppClose
SmppSubmitMessage
SmppEnquireLink
SmppGetLastError
Query functions
Overview
LDAPQuery
REGQuery
CSVQuery
TSVQuery
EventLogQuery
TextLineQuery
TextWordQuery
FSQuery
GetQueryStatus
GetQueryErrorString
Microsoft Outlook integration
Overview
OpenOutlookSession
CloseOutlookSession
OutlookSendMail
OutlookSendMeetingRequest
OutlookCreateTask
Ports IO
Overview
ReadPort
WritePort
IBM WebSphere Message Queue (MQ) functions
Overview
WMQConnect
WMQDisconnect
WMQOpenQueue
WMQCloseQueue
WMQPutMessage
WMQGetMessages
WMQGetManagerStatus
WMQGetQueueStatus
WMQSetOptions
Other routines
Overview
Println
MessageBox
ToString
ToInteger
ToDouble
ToChar
ToByte
ToXml
LogMessage
GetLastSystemError
GetSystemErrorString
GetEnvironmentStrings
GetEnv
SetEnv
IsVariableExist
IsArrayElementExist
GetArraySize
GetArrayIndex
PreallocateArrayHashTable
Sort
IsBitSet
SetBit
ClearBit
ToggleBit
Beep
GetNetDecisionSystemDir
PlaySound
TextToSpeech
Rand
SeedRand
GenerateUID
RGB
Logon
Reboot

NetDecision Script Language Reference

Prev Page Next Page

Other routines

Println

Prints to the output window.

MessageBox

Displays a message box.

GetLastSystemError

Retrieves last system error code.

GetSystemErrorString

Retrieves system error string from error code returned by GetLastSystemError().

ToString

Converts any variable to a string.

ToInteger

Converts a string to integer.

ToDouble

Converts a string to double.

ToChar Converts an int or byte value to char.  
ToByte Converts an int or char value to byte.  
ToXml Converts the snmppdu or snmpvar value to XML node.  
LogMessage Writes log message to a file.  

GetEnviromentStrings

Returns an array that contains the environment variables of the calling process.

GetEnv

Returns the string that contains the value of specified environment variable.

SetEnv

Sets the value of specified environment variable.

GetArraySize Returns the size of array.
GetArrayIndex Returns the index of array element at given position.
IsVariableExist Returns TRUE if the variable exists/declared.
IsArrayElementExist Returns TRUE if an array element exists at specified index. If there is no such element in array, returns FALSE.
PreallocateArrayHashTable
Initializes the internal hash table of an array to improve the performance when working with huge arrays.
Sort Sorts the array elements into ascending order.
IsBitSet Checks the specified bit in byte/integer.
SetBit Sets the specified bit in byte/integer.
ClearBit Clears the specified bit in byte/integer.
ToggleBit Toggles the specified bit in byte/integer.
PlaySound Plays a sound specified by the given filename.
Beep Simple beep. If the sound card is not available, the sound is generated using the speaker.
GenerateUID Generates unique string identifier.
Rand Returns a pseudorandom number.
SeedRand Sets a random starting point.
TextToSpeech Speaks the contents of the given text string.
RGB Creates red, green ,blue (RGB) color.
Logon Attempt to logon user on local computer.
Reboot Reboots local computer.

 

   
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)