Tip: Edit Type column description

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Tip: Edit Type column description

Post by zer0 »

We know that XYplorer is a pretty customisable piece of software. We know that we can tweak almost all parts of the List view. One part that we can't tweak in XYplorer are the text strings that describe files in the Type column. There's a good reason for that: those values are stored in the registry. You may ask, why would one want to change them? Well, for starters, some of those descriptions may be rather more extravagant than we need them to be. And, if you have your List view to auto-size columns, your list could be extended by a lot width-wise just because of a file or two. For example, the description for a ".doc" file when Office 2007 is installed is: "Microsoft Office Word 97 - 2003 Document". That's a mouthful and some of us may want to shorted it to just "DOC File". Fear not, there is a way to do it and I'm going to show you a fool-proof walk-through...

NOTE: This methodology involves editing your computer's registry. If you're not comfortable with doing such, you should not proceed with the steps below. I accept no responsibility of any kind for any consequences if you choose to proceed. Back up your registry before undertaking the steps below.

1. Identify the file type that you wish to edit the description for.
In my example, I will be using "Adobe Acrobat Document", for which the extension is ".pdf" (see image below).
list_view.png
2. Open RegEdit and locate that extension.
RegEdit is a program that's included in Windows, which you can use to edit your computer's registry. You can open it by going to Start --> Run --> typing "regedit" and clicking OK. Once opened, expand a node called "HKEY_CLASSES_ROOT" and scroll down until you find ".pdf" extension (see image below)
regedit_screen.png
3. Locate the ProgramID and edit the description text string.
The arrow in the screenshot above points to AcroExch.Document, which is the ProgramID for a ".pdf" file on my machine. Scroll further down in "HKEY_CLASSES_ROOT" to find it (see image below)
relationship.png
Right-click on "(Default)" in the "Name" column and click on "Modify". Change the text to what you wish it to be and click "OK". Exit RegEdit and reboot. Your type column for that specific file will reflect the change of description. Voilà! 8)

Boot note: Doing it from within XYplorer would have been awesome. Unfortunately, XY doesn't have a scripting command called "sleep", where XY waits for certain period of time before proceeding with the script. This is needed because the speed of how quickly values can be retrieved from the registry vary, but there's no way to take that into account in XY's scripting. If we had "sleep", then I could have integrated that with my VBScript file that would do the searching then use XY to create a custom registry file that would be injected silently into the registry. If only there was "sleep"... ;)
To see the attached files, you need to log into the forum.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

Pagat
Posts: 308
Joined: 09 Oct 2007 21:23
Location: Austria

Re: Tip: Edit Type column description

Post by Pagat »

zer0 wrote:If only there was "sleep"... ;)
There is a non-documented "sleep" ;)

http://www.xyplorer.com/xyfc/viewtopic. ... 718#p34718

From this post:
admin wrote:Yes, a non-documented one: wait msecs

example:
wait 1000; //wait 1 second
OS: Windows 11, 64-bit, Version 25H2, Build 26200.8655 (10.0), AMD64
Monitor: 1/2 (Primary) Primary Screen DPI: 96 (100%)

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Tip: Edit Type column description

Post by zer0 »

Pagat wrote:There is a non-documented "sleep" ;)
Thanks! I have all the puzzle pieces now :D
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

Post Reply