REGCP$HELP.HLB  —  CREATE  VALUE  Examples
  REG> CREATE VALUE/DATA=COSMOS/TYPE=SZ/NAME=COMPUTERNAME -
  _REG> HKEY_LOCAL_MACHINE\NODE

       This example creates the COMPUTERNAME value for the key
       HKEY_LOCAL_MACHINE\NODE and sets its type to SZ and its data
       value to "COSMOS".

  REG> CREATE VALUE HKEY_USERS\CVEX1/NAME=SZ-HEX/TYPE=SZ/INPUT=SYS$INPUT
       HEX:41,00,00,00,42,00,00,00,43,00,00,00,44,00,00,00,45,00,00,00,\
       46,00,00,00,00,00,00,00

       This example creates the SZ-HEX value for the key HKEY_USERS\CVEX1
       and sets its type to SZ. The data is entered as hex data. In this
       particular case, the data equates to the Unicode string "ABCDEF".
       It would be simpler to enter ABCDEF as a string. However, this
       format provides the capability of entering any Unicode value,
       including those you may not be able to input directly as a string.

  $ CREATE POWERS2.DAT
  DEC:2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536,\
  131072,262144,524288,1048576,2097152,4194304,8388608,16777216,\
  33554432,67108864,134217728,268435456,536870912,1073741824

  REG> CREATE VALUE -
     HKEY_USERS\CVEX2/NAME=BIN-FILE/TYPE=BINARY/INPUT=POWERS2.DAT

       This example creates data file POWERS2.DAT containing a series of
       decimal values.  Next the user creates the value BIN-FILE for the
       key HKEY_USERS\CVEX2 and sets its type to BINARY.  The raw binary
       data is read from file POWERS2.DAT to BIN-FILE.
Close Help