How to suppress *.url and *.lnk file name extensions in DetailsView?
-
pstein
- Posts: 70
- Joined: 11 Dec 2021 21:11
How to suppress *.url and *.lnk file name extensions in DetailsView?
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?
This is ok in general.
But for 2 extension .url and .lnk it should be suppress.
How can I achieve this?
-
highend
- Posts: 14925
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: How to suppress *.url and *.lnk file name extensions in DetailsView?
Where, in the extension column? If yes, use a custom column with a script insteadCurrently all extensions are shown in DetailsView.
Code: Select all
$ext = gpc(<cc_item>, "ext");
if (regexmatches($ext, "(url|lnk)")) { return ""; }
return $ext;
One of my scripts helped you out? Please donate via Paypal
-
jupe
- Posts: 3446
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: How to suppress *.url and *.lnk file name extensions in DetailsView?
It is possible, if you set this tweak:
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:
follow these instructions exactly on how to tweak: https://www.xyplorer.com/faq-topic.php?id=tweak
ListHideExtShortcutsOnly=1and 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=1follow these instructions exactly on how to tweak: https://www.xyplorer.com/faq-topic.php?id=tweak
-
pstein
- Posts: 70
- Joined: 11 Dec 2021 21:11
Re: How to suppress *.url and *.lnk file name extensions in DetailsView?
Ok, thank you - But this works only partially.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
*.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?
Last edited by pstein on 17 Dec 2021 20:37, edited 1 time in total.
-
jupe
- Posts: 3446
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: How to suppress *.url and *.lnk file name extensions in DetailsView?
Have you set this setting globally:
Tools | Customize List | Hide Extensions
by default it is per tab.
Tools | Customize List | Hide Extensions
by default it is per tab.
-
pstein
- Posts: 70
- Joined: 11 Dec 2021 21:11
-
jupe
- Posts: 3446
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: How to suppress *.url and *.lnk file name extensions in DetailsView?
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.
-
pstein
- Posts: 70
- Joined: 11 Dec 2021 21:11
Re: How to suppress *.url and *.lnk file name extensions in DetailsView?
It works now (after Restart)
thank you
thank you
-
mikeshick
- Posts: 178
- Joined: 06 Jul 2020 10:28
Re: How to suppress *.url and *.lnk file name extensions in DetailsView?
Sorry, where do I add that tweak?
-
highend
- Posts: 14925
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: How to suppress *.url and *.lnk file name extensions in DetailsView?
follow these instructions exactly on how to tweak: https://www.xyplorer.com/faq-topic.php?id=tweak
One of my scripts helped you out? Please donate via Paypal
-
mikeshick
- Posts: 178
- Joined: 06 Jul 2020 10:28
Re: How to suppress *.url and *.lnk file name extensions in DetailsView?
very kind, thank you.
-
kiwichick
- Posts: 673
- Joined: 08 Aug 2012 04:14
- Location: Windows 10 Pro 22H2, 150% scaling
Re: How to suppress *.url and *.lnk file name extensions in DetailsView?
Is it possible to remove the original file extension from shortcuts?
This: filename.lnk
Instead of this: filename.ext.lnk
This: filename.lnk
Instead of this: filename.ext.lnk
Windows 10 Pro 22H2
-
jupe
- Posts: 3446
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: How to suppress *.url and *.lnk file name extensions in DetailsView?
Ummm... rename the lnk file?
-
kiwichick
- Posts: 673
- Joined: 08 Aug 2012 04:14
- Location: Windows 10 Pro 22H2, 150% scaling
Re: How to suppress *.url and *.lnk file name extensions in DetailsView?
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?
Windows 10 Pro 22H2
-
jupe
- Posts: 3446
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: How to suppress *.url and *.lnk file name extensions in DetailsView?
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.
XYplorer Beta Club