Previous Topic: Exists CommandsNext Topic: Apply Commands


Store Commands

The following are the store commands used in CA DMM scripts:

StoreDirectory

Retrieves a directory's contents from the source machine. This command takes one parameter that is the directory path and is 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 one parameter that is the file path and is a string value. This command 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 and all its values or an ini file section and all of its values from the source computer. This command takes one parameter that is the key path and is 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 any of the file's data specifies a directory path, it is mapped to the appropriate path. This command takes one parameter that is the file path and is 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 one parameter that is the key path and is 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 subkeys 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 one parameter that is the key path and is 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 and the second parameter is the value name. The third parameter, which 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 subkeys from the source computer. It takes one parameter that is the key path and is 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 subkeys 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 one parameter that is the key path and is a string value.

First parameter:

The Key path (string value)

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