Page 1 of 1

View Shortcut Target Folder on Custom Column

Posted: 11 Apr 2015 11:17
by Gabrielle
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.

Re: View Shortcut Target Folder on Custom Column

Posted: 11 Apr 2015 11:44
by highend
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";
    }

Re: View Shortcut Target Folder on Custom Column

Posted: 11 Apr 2015 12:47
by Gabrielle
My brother helped me to get it into a column, thanks much! :appl:
He also pointed me the way to left/right align the displayed info.

Re: View Shortcut Target Folder on Custom Column

Posted: 11 Apr 2015 13:21
by Gabrielle
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. :roll:

Re: View Shortcut Target Folder on Custom Column

Posted: 11 Apr 2015 13:35
by highend
{custom <x>} doesn't work for me too...

You should post a bug report.

Re: View Shortcut Target Folder on Custom Column

Posted: 11 Apr 2015 13:36
by klownboy
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