Lister to follow through lnk files behaviour

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
igarny
Junior Member
Junior Member
Posts: 74
Joined: 2023-01-26, 19:01 UTC

Lister to follow through lnk files behaviour

Post by *igarny »

Happy Easter all,

is there a way to make TC viewer open the content of the file linked with a lnk, and not the content the LNK file itself.
Is there a magic that would always open the content of the final destination file (be it a media file or LNK ), similar to the Windows context menu commands?

I have my other means of viewing and editing the LNK files, which is a different topic.
Last edited by igarny on 2025-04-21, 04:23 UTC, edited 1 time in total.
User avatar
white
Power Member
Power Member
Posts: 5743
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Follow through lnk files behaviour of TC Viewer

Post by *white »

You can view it with Quick View. Press Ctrl+Q or Ctrl+Shift+Q.
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Follow through lnk files behaviour of TC Viewer

Post by *petermad »

You can view it with Quick View. Press Ctrl+Q or Ctrl+Shift+Q.
That still shows the content of the .lnk file, not the file the link is pointing to. EDIT - see following posts...

You can make a Registry setting like this:

Code: Select all

[HKEY_CLASSES_ROOT\*\shell\Open with Lister]

[HKEY_CLASSES_ROOT\*\shell\Open with Lister\command]
@="C:\\totalcmd\\TOTALCMD64.EXE /s=l \"%1\""
This will put an "Open with lister" in the context menu - and show the linked file, not the .lnk file.

Change the path to TC to your actual path. .reg file can be downloaded here: https://tcmd.madsenworld.dk/OpenWithLister.reg



Unfortunately the same trick cannot be used in for example a button:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_EXE% /S=L
%P%N
wcmicons.dll,27
Open file with stand-alone Lister


-1
or

Code: Select all

TOTALCMD#BAR#DATA
cm_List /T2

wcmicons.dll,27
Open file with Lister - in Binary mode


-1
or

Code: Select all

TOTALCMD#BAR#DATA
%COMSPEC% /C
start "" %|COMMANDER_EXE| /S=L %P%N
wcmicons.dll,27
Open file with Lister - via cmd.exe


-1

They will all open the .lnk file
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: Follow through lnk files behaviour of TC Viewer

Post by *Fla$her »

2petermad
Let me remind about this.
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Follow through lnk files behaviour of TC Viewer

Post by *petermad »

2Fla$her

Thanks, Iforgot about that - I have it set to 0 myself.

So with QuickViewFollowLinks=1 (which is default) it is correct what white wrote
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
igarny
Junior Member
Junior Member
Posts: 74
Joined: 2023-01-26, 19:01 UTC

Re: Follow through lnk files behaviour of TC Viewer

Post by *igarny »

Thanks guys
thanks @petermad for the very exhaustive reply...

it seems then that the underlying issue is the Lister, which is precisely focused at the content of the object that it is loading and thus disregards the function of LNK files in the OS.
I am coming to these conclusions based on the facts, that

Code: Select all

TOTALCMD#BAR#DATA
%COMSPEC% /C
start "" %|COMMANDER_EXE| /S=L %P%N
wcmicons.dll,27
Open file with Lister - via cmd.exe


-1

They will all open the .lnk file
there is the F4 solution with external editors like: notepad, notepad++
there is the Quickview solution

So perhaps it would be a great feature improvement, if we had the option to choose how Lister behaves and be able to define this behaviour in settings of TC and perhaps even as an internal command.
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: Follow through lnk files behaviour of TC Viewer

Post by *Fla$her »

igarny wrote: 2025-04-21, 04:23 UTC and be able to define this behaviour in settings of TC
Doesn't QuickViewFollowLinks from my link match this?
Overquoting is evil! 👎
igarny
Junior Member
Junior Member
Posts: 74
Joined: 2023-01-26, 19:01 UTC

Re: Lister to follow through lnk files behaviour

Post by *igarny »

Perhaps it does?
Can I use the viewer Quickview with the 2 panels of TC?
Or is Quickviewer a separate application?
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: Lister to follow through lnk files behaviour

Post by *Fla$her »

I don't know what you mean.
Ctrl + Q = cm_SrcQuickView (Source: Quick view panel)
F3 = cm_List (View with Lister)
There's only one app here - Total Commander.
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Lister to follow through lnk files behaviour

Post by *petermad »

And:
Ctrl+Shift+Q = QuickView in a separate window - this window has it own settings for size and position and is always shown overlapped by TC
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply