Page 1 of 1
Lister to follow through lnk files behaviour
Posted: 2025-04-20, 09:43 UTC
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.
Re: Follow through lnk files behaviour of TC Viewer
Posted: 2025-04-20, 10:17 UTC
by white
You can view it with Quick View. Press Ctrl+Q or Ctrl+Shift+Q.
Re: Follow through lnk files behaviour of TC Viewer
Posted: 2025-04-20, 14:22 UTC
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
Re: Follow through lnk files behaviour of TC Viewer
Posted: 2025-04-20, 14:27 UTC
by Fla$her
2
petermad
Let me remind about
this.
Re: Follow through lnk files behaviour of TC Viewer
Posted: 2025-04-20, 14:37 UTC
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
Re: Follow through lnk files behaviour of TC Viewer
Posted: 2025-04-21, 04:23 UTC
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.
Re: Follow through lnk files behaviour of TC Viewer
Posted: 2025-04-22, 20:22 UTC
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?
Re: Lister to follow through lnk files behaviour
Posted: 2025-04-23, 09:55 UTC
by igarny
Perhaps it does?
Can I use the viewer Quickview with the 2 panels of TC?
Or is Quickviewer a separate application?
Re: Lister to follow through lnk files behaviour
Posted: 2025-04-23, 10:41 UTC
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.
Re: Lister to follow through lnk files behaviour
Posted: 2025-04-23, 18:26 UTC
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