Previous Topic: Exists CommandsNext Topic: Apply Commands


Store Commands

The CA DMM scripts use the following store commands:

StoreDirectory

Retrieves the contents of a directory from the source computer. This command takes the directory path parameter as a string value.

First parameter:

The Directory path (string value)

Example:
StoreDirectory( "c:\\My Documents");
StoreFile

Retrieves a file from the source computer. This command takes the file path as the parameter as a string value and recognizes the asterisk (*) as a wildcard.

First parameter:

The File path (string value)

Examples:
StoreFile( "c:\\temp\\file.txt");
StoreFile( "c:\\temp\\*.txt");
StoreKey

Retrieves a registry key or an ini file section and all of its values from the source computer. This command takes the key path parameter as a string value.

First parameter:

The Key path (string value)

Example:
StoreKey( "HKCU\\Software\\Microsoft\\Office\\8.0\\Word\\Options" );
StoreMappedFile

Retrieves a file from the source computer. If the data of the files specifies a directory path, it is mapped to the appropriate path. This command takes the key path parameter as a string value.

First parameter:

The File path (string value)

Examples:
StoreMappedFile( "c:\\temp\\file.txt");
StoreMappedKey

Retrieves a registry key and all its values or an ini file section and all its values from the source computer. If any of the value names or value data is a directory path, they are mapped to the appropriate path. This command takes the key path parameter as a string value.

First parameter:

The Key path (string value)

Usage:
StoreMappedKey(<Key path >);
Example:
StoreMappedKey( "HKCU\\Software\\Microsoft\\Office\\8.0\\Word\\Options" );
StoreMappedSubKeys

Retrieves a registry key, all its values and all its sub keys from the source computer. If any of the value names or value data is a directory path, they are mapped to the appropriate path. This command takes the key path parameter as a string value.

First parameter:

The Key path (string value)

Usage:
StoreMappedSubKeys(<Key path >);
Example:
StoreMappedSubKeys( "HKCU\\Software\\Microsoft\\Office\\8.0\\Word\\Options" );
StoreMappedValue

Retrieves a registry key value or ini file section value from the source computer. If the value name or value is a directory path, it is mapped to the appropriate path. This command can take three parameters that are string values. The first two parameters are required. The first parameter is the registry key path. The third parameter, is the delimiter, is optional, and is a string value.

First parameter:

The Key path (string value)

Second parameter:

The Value name (string value)

Third parameter:

The delimiter (string value)

Usage:
StoreMappedValue( <Key path>, <Value name>, [delimiter] );
Examples:
StoreMappedValue( "HKCU\\Software\\Microsoft\\Office\\8.0\\Common\\Toolbar", "Tooltips");
StoreMappedValue( "HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\Navw32.exe", "Path", ";");
StoreSubKeys

Retrieves a registry key, all its values and all its sub keys from the source computer. It takes the key path parameter in a string value.

First parameter:

The Key path (string value)

Example
StoreSubKeys( "HKCU\\Software\\Microsoft\\Office\\8.0\\Word");
StoreValue

Retrieves a registry key, all its values and all its sub keys from the source computer. If any of the value names or value data is a directory path, they are mapped to the appropriate path. This command takes the key path parameter in a string value.

First parameter:

The Key path (string value)

Usage:
StoreMappedSubKeys(<Key path >);
Example:
StoreMappedSubKeys( "HKCU\\Software\\Microsoft\\Office\\8.0\\Word\\Options" );