Add *.lnk to Show Programs filter

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Add *.lnk to Show Programs filter

Post by *white »

Menu option Show/Programs shows *.com, *.exe, *.bat, *.pif, and *.cmd files.

It is weird to have *.pif in this list and not *.lnk
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Add *.lnk to Show Programs filter

Post by *Gral »

It is not - PIF means Program Information File and contains information how specific PROGRAM should be executed.
LNK points to program, document or directory so if we change system association for particular type of document completly different program will run on execute exactly the same link.
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Add *.lnk to Show Programs filter

Post by *white »

Gral wrote: 2022-06-30, 23:33 UTC It is not - PIF means Program Information File and contains information how specific PROGRAM should be executed.
Which also applies to .lnk files.
Gral wrote: 2022-06-30, 23:33 UTC LNK points to program, document or directory so if we change system association for particular type of document completly different program will run on execute exactly the same link.
So what? And how is that different from .bat and .cmd files and .pif files for .bat files?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Add *.lnk to Show Programs filter

Post by *ghisler(Author) »

The reason is that lnk files don't necessarily point to programs. They can also point to documents and even folders.
The option is meant to show programs only. Total Commander would have to open each lnk file and check where it points to, which may be even impossible if the target is on a currently not accessible network drive or on a not connected USB flash drive.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Add *.lnk to Show Programs filter

Post by *white »

ghisler(Author) wrote: 2022-07-01, 07:09 UTC Total Commander would have to open each lnk file and check where it points to...
Why? You are not doing that with .pif files pointing to .bat files and not doing that with .bat and .cmd files.
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Add *.lnk to Show Programs filter

Post by *Hacker »

white,
Well, .bat and .cmd files are considered programs, .lnk files are not programs. I do not see the issue here(?)

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Add *.lnk to Show Programs filter

Post by *white »

Hacker wrote: 2022-07-01, 10:34 UTC Well, .bat and .cmd files are considered programs, .lnk files are not programs.
I see, so you cannot execute .lnk files?
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Add *.lnk to Show Programs filter

Post by *Hacker »

white,
No, not really. You can "execute" some of them which point to an executable file (similar to .pif files) but only those. Those which do not point to programs you cannot execute, no.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Add *.lnk to Show Programs filter

Post by *white »

Hacker wrote: 2022-07-01, 11:33 UTC No, not really. You can "execute" some of them which point to an executable file (similar to .pif files) but only those. Those which do not point to programs you cannot execute, no.
Yes, really. They are really executed no matter where they point to. But this is a discussion about semantics.

I do see a difference though when executing a file without specifying the extension. Then, Windows tries to execute all other extensions but not .lnk . So in that sense Windows does indeed doesn't see .lnk files as programs.
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Add *.lnk to Show Programs filter

Post by *Gral »

Follow this logic ANY file associated with any program is the program file itself - because program IS executed when you press Enter on *.txt *.bmp *. png *.jpg *.mp4 *.doc *.html *.svg , right?
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Add *.lnk to Show Programs filter

Post by *Hacker »

white,
Yes, really. They are really executed no matter where they point to.
Perhaps there is a misunderstanding regarding what is meant by "executing a program"? A program usually means a set of instructions, such as can be found in e.g. .exe, .bat and .cmd files. On the other hand, .lnk files do not contain any instructions, they only point to other files. As mentioned before, similar could be theoretically said about .pif files, but they always point to program files, so they can be considered "executable" for our purposes.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Add *.lnk to Show Programs filter

Post by *white »

Gral wrote: 2022-07-01, 13:48 UTC Follow this logic ANY file associated with any program is the program file itself - because program IS executed when you press Enter on *.txt *.bmp *. png *.jpg *.mp4 *.doc *.html *.svg , right?
*.lnk files, like *.pif *.cmd *.bat *.exe and *.com files don't have any program associated with it. They are executed themselves.
User avatar
solid
Power Member
Power Member
Posts: 747
Joined: 2004-08-09, 11:20 UTC

Re: Add *.lnk to Show Programs filter

Post by *solid »

LNK can point to documents, folders, objects (computer, printers, scanners etc.) that have nothing in common with programs.
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Add *.lnk to Show Programs filter

Post by *Hacker »

white,
*.lnk files, like *.pif *.cmd *.bat *.exe and *.com files don't have any program associated with it. They are executed themselves.
Why would you think that? There is no set of instructions in a .lnk file. You can check the format specification yourself.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
JOUBE
Power Member
Power Member
Posts: 1448
Joined: 2004-07-08, 08:58 UTC

Re: Add *.lnk to Show Programs filter

Post by *JOUBE »

A completely pointless discussion about *.lnk, not worth pursuing any further. The OP has - and that as a moderator - unnecessarily tied up resources from regulars. Just why?

JO"Maybe to show that he has little knowledge of how OSs work? it's really incomprehensible"UBE
Last edited by JOUBE on 2022-07-01, 17:34 UTC, edited 1 time in total.
Post Reply