I'm trying to add an item to context menu in Windows 10. When I use the direct path such as:
[HKEY_CLASSES_ROOT\Directory\Background\shell\MySetFolders\command] @="D:\\DOCS\\CreateFolders\\CreateFolders.exe"
It works. I have a new command in the context menu and it runs my app.
But I use an alias like below it won't run my app but an error
[HKEY_CLASSES_ROOT\Directory\Background\shell\MySetFolders\command] @="%userprofile%\\documents\\CreateFolders\\CreateFolders.exe"
What's the problem? Thank you.
P.S : "My Documents" location is set to D:\DOCS