Page 1 of 2

How to suppress *.url and *.lnk file name extensions in DetailsView?

Posted: 17 Dec 2021 09:54
by pstein
Currently all extensions are shown in DetailsView.
This is ok in general.

But for 2 extension .url and .lnk it should be suppress.

How can I achieve this?

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Posted: 17 Dec 2021 10:08
by highend
Currently all extensions are shown in DetailsView.
Where, in the extension column? If yes, use a custom column with a script instead

Code: Select all

$ext = gpc(<cc_item>, "ext");
    if (regexmatches($ext, "(url|lnk)")) { return ""; }
    return $ext;
If inside the Name column? Either use a custom column as well or: forget it, you can't modify that

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Posted: 17 Dec 2021 20:13
by jupe
It is possible, if you set this tweak:

ListHideExtShortcutsOnly=1

and then enable this:

Tools | Customize List | Hide Extensions

Additionally if you only want them hidden in details view, you'll need to also set this tweak:

ListHideExtInDetailsOnly=1

follow these instructions exactly on how to tweak: https://www.xyplorer.com/faq-topic.php?id=tweak

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Posted: 17 Dec 2021 20:35
by pstein
jupe wrote: 17 Dec 2021 20:13 It is possible, if you set this tweak:

ListHideExtShortcutsOnly=1

and then enable this:

Tools | Customize List | Hide Extensions

Additionally if you only want them hidden in details view, you'll need to also set this tweak:

ListHideExtInDetailsOnly=1

follow these instructions exactly on how to tweak: https://www.xyplorer.com/faq-topic.php?id=tweak
Ok, thank you - But this works only partially.
*.url shortcut extensions seem to be hidden. Good!
*.png.lnk shortcut extensions seem to be hidden. Good!

But if I place a shortcut to a *. pdf somewhere else on the partition then the shortcut file name show still

foobar.pdf.lnk

Curiosly Shortcuts to some but not all *.pdf.lnk hide really the *.lnk part.
But other *.pdf.lnk do not work

Any other idea?

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Posted: 17 Dec 2021 20:37
by jupe
Have you set this setting globally:

Tools | Customize List | Hide Extensions

by default it is per tab.

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Posted: 17 Dec 2021 20:39
by pstein
jupe wrote: 17 Dec 2021 20:37 Have you set this setting globally:

Tools | Customize List | Hide Extensions

by default it is per tab.
I set it in the tab where .pdf.lnk is still shown.

How do I set it globally?

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Posted: 17 Dec 2021 20:43
by jupe
pstein wrote: 17 Dec 2021 20:35 Curiosly Shortcuts to some but not all *.pdf.lnk hide really the *.lnk part.
Just noticed your edit where you said this, I would try renaming the file slightly, maybe it had a double lnk extention?. Anyway it sounds like it is mostly working properly for you, and that is the best you can achieve currently.

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Posted: 18 Dec 2021 08:26
by pstein
It works now (after Restart)
thank you

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Posted: 13 Jan 2022 23:29
by mikeshick
Sorry, where do I add that tweak?

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Posted: 13 Jan 2022 23:30
by highend
follow these instructions exactly on how to tweak: https://www.xyplorer.com/faq-topic.php?id=tweak

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Posted: 13 Jan 2022 23:50
by mikeshick
very kind, thank you.

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Posted: 17 May 2024 02:11
by kiwichick
Is it possible to remove the original file extension from shortcuts?

This: filename.lnk
Instead of this: filename.ext.lnk

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Posted: 17 May 2024 03:23
by jupe
Ummm... rename the lnk file?

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Posted: 17 May 2024 08:55
by kiwichick
jupe wrote: 17 May 2024 03:23 Ummm... rename the lnk file?
Seriously? Of course I can do that and that is what I do. But, in a forum about an app that includes a scripting language, don't you think I'm asking if it can be done with a script?

Re: How to suppress *.url and *.lnk file name extensions in DetailsView?

Posted: 17 May 2024 09:02
by jupe
Don't you think you should have stated that? It doesn't requires a script to achieve that, so why would anyone automatically assume you meant that, especially in a topic that has nothing to do with scripting, it's about hiding exts, and you used the word remove not rename.