REG EXPORT: Hex returned?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
tinfanide
Posts: 117
Joined: 05 Sep 2011 09:15

REG EXPORT: Hex returned?

#1 Post by tinfanide » 12 May 2012 23:29

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.

Squashman
Expert
Posts: 4472
Joined: 23 Dec 2011 13:59

Re: REG EXPORT: Hex returned?

#2 Post by Squashman » 13 May 2012 00:07

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.

Post Reply