Hi again.
Enabling custom column I can select special property shortcut target.
· How could I see only the containing folder the .lnk points to, instead of the whole path?
· …or the parent’s parent folder either? Like “grand\parent” of a file?
· Is there a way to toggle left-right align?
TIA.
View Shortcut Target Folder on Custom Column
-
highend
- Posts: 14992
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: View Shortcut Target Folder on Custom Column
Use a custom column with a script...
Code: Select all
$linkTarget = property("#LinkTarget", "<cc_item>");
if ($linkTarget) {
$pathOnly = getpathcomponent($linkTarget, "path");
$parent = getpathcomponent($pathOnly, "component", -1);
$grand = getpathcomponent($pathOnly, "component", -2);
return "$grand\$parent";
}One of my scripts helped you out? Please donate via Paypal
-
Gabrielle
- Posts: 57
- Joined: 28 Apr 2012 00:57
Re: View Shortcut Target Folder on Custom Column
My brother helped me to get it into a column, thanks much!
He also pointed me the way to left/right align the displayed info.
He also pointed me the way to left/right align the displayed info.
-
Gabrielle
- Posts: 57
- Joined: 28 Apr 2012 00:57
Re: View Shortcut Target Folder on Custom Column
Is this report broken?
text report("{name}: {custom 16}<crlf>");
I get the names correctly but my custom column doesnt show. Replaced 16 by 1-20 just to ensure I'm not doing it wrong.
text report("{name}: {custom 16}<crlf>");
I get the names correctly but my custom column doesnt show. Replaced 16 by 1-20 just to ensure I'm not doing it wrong.
-
highend
- Posts: 14992
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: View Shortcut Target Folder on Custom Column
{custom <x>} doesn't work for me too...
You should post a bug report.
You should post a bug report.
One of my scripts helped you out? Please donate via Paypal
-
klownboy
- Posts: 4468
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
Re: View Shortcut Target Folder on Custom Column
Yes, it may be broken. See this reported bug here (from just a couple of days ago)... http://www.xyplorer.com/xyfc/viewtopic. ... 35#p121476
XYplorer Beta Club