Command SETREG
Function:
Set or delete a value for the specified hkey in the System Registry.
Syntax:
SETREG hkey [name=[value type]]
| hkey | Specifies the path of the complete key. |
| name | Specifies the name of the value to set. |
| value | Sequence of characters specifying the value. |
| type | Specifies the type of value to set. |
Note:
- Parameter hkey must begin with one of the following System Registry names :-
| HKEY_USERS |
| HKEY_CURRENT_USER |
| HKEY_LOCAL_MACHINE |
| HKEY_CLASSES_ROOT |
and all the sub-keys must be separated by backslashes (ie. ' \ '), For example :-
HKEY_CURRENT_USER\Software\WinOne\WinOne
- Parameter type may be any one of the following :-
| REG_SZ | A null terminated string. |
| REG_DWORD | A 32 bit number. |
| REG_DWORD_LITTLE_ENDIAN | Same as REG_DWORD. |
| REG_DWORD_BIG_ENDIAN | A 32 bit number which is automatically converted to REG_DWORD format. |
- When only parameter hkey is specified then the hkey will be deleted from the System Registry. Similarly, when parameters value and type are not specified then the specified name will be deleted from the hkey in the System Registry.
- Command SETREG is not available under Win32s, since WIn32s does not support a System Registry.
- Also see command GETREG, ENUMREG, GETINI, SETINI and Batch Programs.
|