Lister on a junction folder: how to show destination path?

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
wanderer
Power Member
Power Member
Posts: 1571
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Lister on a junction folder: how to show destination path?

Post by *wanderer »

There may be a plugin for this but i'd like to request that when on a folder and pressing F3, for Lister to show a junction's destination path.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Lister and Junctions

Post by *petermad »

I do this with a saved search:

Code: Select all

[Searches]
LNK_SearchFor=
LNK_SearchIn=
LNK_SearchText=
LNK_SearchFlags=0|000002000020|||||||||0000|
LNK_plugin=""tc.file type" = "reparse point""
and a user-defined help text:

Code: Select all

[HintsCustomField]
0exts=>LNK
0fields=[=ntlinks.RP_Target]  ([=ntlinks.Obj_Type])
see: https://madsenworld.dk/tcmd/lnkhelp1.png and https://madsenworld.dk/tcmd/lnkhelp2.png

Using the plugin: NTLinks 1.6.0.244 - https://totalcmd.net/plugring/ntlinks.html
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Hurdet
Power Member
Power Member
Posts: 620
Joined: 2003-05-10, 18:02 UTC

Re: Lister and Junctions

Post by *Hurdet »

to me:
LNK_plugin=""tc.file type" = "reparse point""
find only folder symbolic link
LNK_plugin="tc.file type" = "reparse point" | ntlinks.Obj_Type = Symlink
find folder and file symbolic link
but i'm not able to find hardlinks.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Lister and Junctions

Post by *petermad »

2Hurdet
This should find Junction, SymlinkD, Symlink and Hardlink

Code: Select all

LNK_SearchFor=
LNK_SearchIn=
LNK_SearchText=
LNK_SearchFlags=0|002002000020|||||||||0000|||
LNK_plugin="tc.file type" = "reparse point" | ntlinks.Obj_Type = Symlink | ntlinks.HLNK_Count > 1
And this could show help text for them:

Code: Select all

[HintsCustomField]
0exts=>LNK
0fields=[=ntlinks.Obj_RealPath]  ([=ntlinks.Obj_Type])
The path for hardlinks will always be current path.

-------------

If you want all the paths for hardlinks then use:

Code: Select all

HLNK_SearchFor=
HLNK_SearchIn=
HLNK_SearchText=
HLNK_SearchFlags=0|002002000020|||||||||0000|||
HLNK_plugin=ntlinks.HLNK_Count > 1
LNK_SearchFor=
LNK_SearchIn=
LNK_SearchText=
LNK_SearchFlags=0|002002000020|||||||||0000|||
LNK_plugin="tc.file type" = "reparse point" | ntlinks.Obj_Type = Symlink
and:

Code: Select all

[HintsCustomField]
0exts=>LNK
0fields=[=ntlinks.Obj_RealPath]  ([=ntlinks.Obj_Type])
1exts=>HLNK
1fields=Hardlinks: [=ntlinks.HLNK_Paths]
EDITED typo in code here above.
Last edited by petermad on 2020-08-21, 09:35 UTC, edited 2 times in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Hurdet
Power Member
Power Member
Posts: 620
Joined: 2003-05-10, 18:02 UTC

Re: Lister and Junctions

Post by *Hurdet »

1fields=Hardlinks: [=ntlinks.Hard Copies}
has a small typo. I think:
1fields=Hardlinks: [=ntlinks.Hard Copies]
but so it show only file "filename Hardlinks: [EMPTY]"
I not have [=ntlinks.Hard Copies] but [=ntlinks.HLNK_Count]
do you mean this?
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Lister and Junctions

Post by *Dalai »

IMO it doesn't make any sense to show the target for hard links because they don't have any target since they're not links like symbolic links or junctions. A hard link is just another entry in the MFT for the exact same file, nothing else.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Lister and Junctions

Post by *petermad »

2Hurdet
1fields=Hardlinks: [=ntlinks.Hard Copies}
has a small typo. I think:
1fields=Hardlinks: [=ntlinks.Hard Copies]
but so it show only file "filename Hardlinks: [EMPTY]"
I not have [=ntlinks.Hard Copies] but [=ntlinks.HLNK_Count]
do you mean this?
Yes, there was a typo (} -> ]). and sorry - [=ntlinks.Hard Copies] is the user friendly name shown in the dialogs (English) - the generic code is: [=ntlinks.HLNK_Paths]

This should show all the paths for the current hardlink - see: https://madsenworld.dk/tcmd/hardlinkpaths.png

I have edited my post above accordingly.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Hurdet
Power Member
Power Member
Posts: 620
Joined: 2003-05-10, 18:02 UTC

Re: Lister and Junctions

Post by *Hurdet »

ty
User avatar
wanderer
Power Member
Power Member
Posts: 1571
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: Lister and Junctions

Post by *wanderer »

Hey petermad,

Thanks for the solution, i implemented it but i had to enable "Show filename as tooltip", which i had disabled.

In any case, my request still stands. Showing the selected junction's target in Lister is as simple as your solution, and is hopefully also simple to implement.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Lister on a junction folder: how to show destination path?

Post by *MVV »

I usually use mentioned pattern because TC's internal field ignores symlinks to files:

Code: Select all

"tc.file type" = "reparse point" | ntlinks.Obj_Type = Symlink
And, I hate internal Lister reaction on directories, it causes time lost every time I accidentally press F3 on a directory, so I use NoDirQuickView plugin that disables standard info page.

But I agree that reparse point target path is important enough to show it in standard directory preview.
User avatar
wanderer
Power Member
Power Member
Posts: 1571
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: Lister on a junction folder: how to show destination path?

Post by *wanderer »

Refining this request, it would be nice if F3 on a dir worked like this:

Line 1: Selected path
Line 2: Junction target path
Line 3: Empty
Line 4: Start counting occupied space and display it after having displayed the above.

In other words, don't show "..." when opening Lister and show everything after the subfolder count has finished, but rather show the first 3 lines and then in Line 4 show "..." until the count has finished, then remove "..." and show the results.

An INI flag could also exist that would prevent TC from counting subfolders and just show the first 2 lines (i.e. NoFolderCountInLister=1).
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
User avatar
AntonyD
Power Member
Power Member
Posts: 1231
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: Lister on a junction folder: how to show destination path?

Post by *AntonyD »

it would be nice if F3 on a dir worked like this:
Support+++++++++++++
#146217 personal license
Post Reply