Added option to open folders to their true path

Adds a new function called GetFakeFolder which attempts to find and get
the target.lnk file from a fake folder (what Open-Shell uses to pin
folders). If detected, InvokeCommand is swapped for a ShellExecute call
to the target shortcut. Fixes #555, #653, and by extension, #691.
This commit is contained in:
thisismy-github
2021-08-19 14:21:11 -04:00
committed by Ibuprophen
parent bb26cec0ec
commit 27e5c2bc74
6 changed files with 49 additions and 6 deletions
@@ -1315,6 +1315,12 @@ BEGIN
IDS_ITEM_LINKS_TIP "This item will appear as a sub-menu showing only its top-level contents"
END
STRINGTABLE
BEGIN
IDS_OPEN_TRUE_PATH "Open pinned folders to their true path"
IDS_OPEN_TRUE_PATH_TIP "When this is checked, pinned folders will open to their true path instead of the path to their shortcut in the Pinned Programs folder"
END
#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////