Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what format to use for hex to REG_BINAR registry key

Status
Not open for further replies.

highpster

IS-IT--Management
Jan 25, 2007
1
US
How to add the following to the registry.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"DaylightStart"=hex:00,00,03,00,02,00,02,00,00,00,00,00,00,00,00,00
"StandardStart"=hex:00,00,0b,00,01,00,02,00,00,00,00,00,00,00,00,00

So far this is what I have:
set tzrega {HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation}
registry set $tzrega "DaylightStart" [binary format "not sure what format to use here" ] binary
registry set $tzrega "StandardStart" [binary format "not sure what format to use here"] binary


 
Code:
  registry set $tzrega "DaylightStart" "\x00\x00\x03\x00\x02\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00" binary

More on backslash substitution at:
HTH

ulis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top