Dynamic Environment Variables

<< Click to display Table of Contents >>

Navigation:  New Info > Text-Wildcards >

Dynamic Environment Variables

Dynamic Environment Variables are very similar to the functions available in Dynamic channels and Dynamic Infoclientvalues. The syntax in the text contains a wildcard-expression, which defines the information, for which the Infoclient has to query for. The result of the query then will substitute the expression in the text that is displayed on the client.

 

Syntax:

 

%DICV(diType,diValue)%

 

The expression begins and ends with the % character. Inside the expression is a function-call: DICV(diType,diValue). This function queries for certain client properties. The first argument diType must be replaced with a static keyword for the type of information, that you want to query for. The second argument diValue must be replaced by a value, which is accessible for the type. For a list of possible types and values, please see chapter Dynamic Infoclientvalues.

 

These attributes can be defined and checked:

 

Applications (installed)

Processes (running)

Connections

Files (Existing)

Titles of windows

Registry

Data attributes

Inifiles

WMI Query

 

Example:

 

Your Operating System is: %DICV(diWMIValue,SELECT Caption FROM Win32_OperatingSystem)%

 

This Dynamic Environment Variable will search for the name of the client's operating system. The result will replace this expression in the message displayed on the recipients screen.

 

 

Dynamic Infoclientvalues

 

The query of the client properties is done by means of dynamic Infoclientvalues, a special form of Ini entries.

 


How to add a dynamic Infoclient Value (DICV) to an Infoclient is explained in chapter Allocate Clientproperties.

 

The following types of dynamic Infoclientvalues ​​are currently available for query:

 

type/value

function

example syntax

diFileExists

Scans, if a file exists. According to the result, a message can be shown.

Path

e.g.: c:\programs\cordaware\mailtonews.exe

diFileSize

Scans the size of a file. E.g, if a database has achieved a critical size, an automatically message can be sent to an admin, or to the user.

Path

 

e.g.: j:\database\backup

 

diFileAge

Scans the age of file. Message can be sent according to the age of a file.

 

Path

e.g.: c:\programs\cordaware\mailtonews.exe

 

diFileVersion

 

Scans the version number of a file. Messages can be sent according to version number of a file.

 

 

Path

e.g.: c:\programs\cordaware\mailtonews.exe

diDirExists

 

Scans, if a certain path exists. E.g. all users of open office etc.

 

Path

e.g.: c:\programs\cordaware

 

diDiskSize

Scans the size of a device. E.g, if a device has achieved a critical size, an automatically message can be sent to an admin, or to the user.

Drive Letter

e.g.: c

diDiskFree

Scans the free space of a device

Drive Letter

e.g.: c

diRegExists

Scans if a certain Regkey exists

Regkey

e.g.: HKEY_LOCAL_MACHINE\SOFTWARE\Cordaware\Infoband\Path

diRegKey

 

Returns the value of a certain Regkey

 

Regkey

e.g.: HKEY_LOCAL_MACHINE\SOFTWARE\Cordaware\Infoband\Path

diPrinterExists

Scans, if a particular printer exists in the configuration

Printer Name

e.g.: HP Printer 2020

diProcessRuns

Scans, if a process is running currently. If it is running a message can be sent to all this users

Name of the process

e.g.: infoclient.exe

diProcessRan

Scans, if a process ran prvoiusly in the user's session.

Name of the process

e.g.: infoclient.exe

diProcessList

Scans a processlist

Name of the process e.g.: *otep*, Notepad or Notepad.exe

diConnectedTo

Scans active connections, e.g. client-server connections.

Computername or IP Address

Wildcards can be used.

e.g.: server1 or 192.168.69.*

diListen

Scans open ports

Port number (e.g: 8431)

diNetdirConnectedTo

Scans wether a device is mounted to a server. If the connection is interrupted, the client can be informed.

name of the server

Wildcards can be used

e.g.: *server*

diInifileValue

Reads out values from Inifiles

Loction of the Inifile with section and key:

c:\Programs\Cordaware\Infoband

\Infoclient.ini;General=Address'

diWMIValue

 

Reads information from the WMI

 

WMI command:

Select Caption from Win32_OperatingSystem

diTitleExists

Checks if an application window's title matches the given value. Wildcards can be used in the value.

*internet*explorer*

diDefault

Scans for a Text which you have entered.