New
#1
Improper resolution of Documents folder?
I have used the Location tab on the Documents folder to move my folder to 'J:\Documents'.
In the registry I see these two keys:
However, when I use the expression %USERPROFILE%\Documents it always expands incorrectly:Code:[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders] "Personal"="J:\\Documents" [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders] "Personal"=hex(2):4a,00,3a,00,5c,00,44,00,6f,00,63,00,75,00,6d,00,65,00,6e,00,\ 74,00,73,00,00,00
What could I be doing wrong?Code:Microsoft Windows [Version 10.0.10586] (c) 2015 Microsoft Corporation. All rights reserved. C:\WINDOWS\system32>cd %USERPROFILE%\Documents C:\Users\Jim\Documents>
I suppose the resolution of %USERPROFILE% is fixed and not context-sensitive, so how should this be expressed for a shell file?