L’interface de VDS Renaissance est disponible en plusieurs langues. La documentation officielle est maintenue en anglais afin de garantir une référence unique, cohérente et toujours à jour.
REGISTRY
Syntax
REGISTRY COPY, <root key>, <subkey>, <new subkey>
REGISTRY DELETE, <root key>, <subkey> {, <value>}
REGISTRY MOVE, <root key>, <subkey>, <new subkey>
REGISTRY RENAME, <root key>, <subkey>, <name>, <new name>
REGISTRY WRITE, <root key>, <subkey>, <name>, <value>,<type>
Description
The REGISTRY command modifies the value of keys in the Windows registry.
The <root key> specifies the part of the registry to start from. The permissible values are:
Value |
Registry root |
|
ROOT |
HCR |
HKEY_CLASSES_ROOT\ |
CURUSER |
HCU |
HKEY_CURRENT_USER\ |
LOCAL |
HLM |
HKEY_LOCAL_MACHINE\ |
USERS |
HU |
HKEY_USERS\ |
DEFAULT |
HKEY_CURRENT_USER\Software\V-Softs\VDS\UserScripts\<scriptname>\ or as specified in OPTION REGKEY |
|
The <subkey> specifies the key required. This may be null if the <rootkey> is DEFAULT.
The <name> specifies the named value to write. If <name> is null, the default value of the key is used.
REGISTRY COPY allows a registry key to be copied to another key name within the root key. This command works recursively so that if a key contains subkeys, these are also copied.
REGISTRY DELETE deletes the specified registry value or, if no value is specified, the entire subkey. This command works recursively so that if a key contains subkeys, these are also deleted.
REGISTRY MOVE allows a registry key to be moved to another key name within the root key. This command works recursively so that if a key contains subkeys, these are also moved.
REGISTRY RENAME allows the name of a value in the registry to be changed.
REGISTRY WRITE writes a value to the registry. The <type> parameter specifies the type of data to be written. If omitted, the default type is STRING, if the value does not already exist, otherwise the type used is the same as the existing value, if possible.
REGISTRY WRITE supports values of types STRING, EXPANDSTRING, MULTI, INTEGER, DWORD and BINARY are supported. The EXPANDSTRING type is a string containing tokens representing environment variables. When read, this type of value must be expanded using the @EXPAND function. MULTI strings are strings representing one or more lines of data. Each line is separated by a carriage return character. Multi strings must not contain any blank lines. If present, blank lines will be removed when the string is written to the Registry. INTEGER and DWORD are synonyms: values must be decimal integers. [VDS6] LARGEINT and QWORD are also synonyms, and can handle 64-bit integer values. BINARY values must be expressed as a string of decimal numbers, one per byte, separated using the current field separator character.
It is recommended that the DEFAULT root key is used for any registry keys created for the use of DialogScript programs.
OK
Set to false if the command fails.
Example
REGISTRY WRITE,ROOT,.wsc,,wnscript
REGISTRY WRITE,DEFAULT,Test,Value,31
REGISTRY WRITE,CURUSER,Software,BinaryValue,0|1|8|0,BINARY
REGISTRY DELETE,ROOT,.tmp