Page 1 of 1

REG EXPORT: Hex returned?

Posted: 12 May 2012 23:29
by tinfanide

Code: Select all

REM Win7 64-bit

REM real path
REG EXPORT "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"

REM Hex path
REG EXPORT "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"



On my machine, both registry keys contain the same bits of information.
But for [User Shell Folders],
Hex (e.g. "hex(2):44,00,3a,00,5c,00,4d,00,75,00,73,00,69,00,63,00,00,00") is returned.
For [Shell Folders],
a real path (e.g. "D:\My Music") is returned.

Re: REG EXPORT: Hex returned?

Posted: 13 May 2012 00:07
by Squashman
tinfanide wrote:

Code: Select all

REM Win7 64-bit

REM real path
REG EXPORT "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"

REM Hex path
REG EXPORT "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"



On my machine, both registry keys contain the same bits of information.
But for [User Shell Folders],
Hex (e.g. "hex(2):44,00,3a,00,5c,00,4d,00,75,00,73,00,69,00,63,00,00,00") is returned.
For [Shell Folders],
a real path (e.g. "D:\My Music") is returned.

That is how it works with REG_EXPAND_SZ data types.