Find Files: Executable files types

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Find Files: Executable files types

Post by TheQwerty »

How are the extensions for this filter determined? :oops:
Or more specifically how can I remove some?

It doesn't appear to be driven by the PathExt environment variable, nor is it listed in Preview Formats.

ExePreviewCustomExtensions allows adding extensions to the list, but my list includes a handful of extensions I don't want.

CHM as an executable? :naughty: No thanks!

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Find Files: Executable files types

Post by admin »

It's hard-coded. No way to remove stuff here.

CHM? Isn't this executable HTML?

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Find Files: Executable files types

Post by TheQwerty »

I have never encountered a CHM that wasn't a document intended for reading.
Maybe it can do more but to me it's no more an executable than a PDF alternative.
I feel similarly about inf and reg for that matter.

I was just a little surprised that the dialog from hitting F1 in the combo box doesn't allow editing them.
In any event it's no big deal, just piqued my curiosity. :whistle:

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Find Files: Executable files types

Post by admin »

TheQwerty wrote:I was just a little surprised that the dialog from hitting F1 in the combo box doesn't allow editing them.
In any event it's no big deal, just piqued my curiosity. :whistle:
Yes, one could add that. Maybe later...

neminem
Posts: 94
Joined: 13 Aug 2012 20:31

Re: Find Files: Executable files types

Post by neminem »

Yeah, chm files are so not executables. Chm files are help files. Inf files are also certainly not executables. You could make an argument for reg files, I suppose.

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Find Files: Executable files types

Post by admin »

neminem wrote:Yeah, chm files are so not executables. Chm files are help files. Inf files are also certainly not executables. You could make an argument for reg files, I suppose.
Well, check out this: http://antivirus.about.com/od/securityt ... xtview.htm

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Find Files: Executable files types

Post by TheQwerty »

admin wrote:
neminem wrote:Yeah, chm files are so not executables. Chm files are help files. Inf files are also certainly not executables. You could make an argument for reg files, I suppose.
Well, check out this: http://antivirus.about.com/od/securityt ... xtview.htm
I think that's just a poor choice of words.

That same list contains the Microsoft Office extensions and should probably include PDF, HTML, and many many more given the context. At one time it might have been okay to assume that only executable files could execute code but not anymore.

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Find Files: Executable files types

Post by admin »

So, can anybody come up with a list of executable file extensions that everybody else can agree upon?

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Find Files: Executable files types

Post by TheQwerty »

admin wrote:So, can anybody come up with a list of executable file extensions that everybody else can agree upon?
No, of course not. :P

I'd start with those defined in PATHEXT.
Mine: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PL;.PLX;.PS1;.PSC1;.AHK;.LNK

Though I'd probably drop .LNK.

From there I'm not sure what, if anything, I'd add.

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Find Files: Executable files types

Post by admin »

PS1;.PSC1 ??? not very common

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Find Files: Executable files types

Post by admin »

This site features XYS as an executable extension, Popularity: Average.
http://www.fileinfo.com/filetypes/executable

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Find Files: Executable files types

Post by nas8e9 »

admin wrote:PS1;.PSC1 ??? not very common
Those are PowerShell-files (Microsoft's command line automation engine), and can definitely wreak havoc. Probably most familiar to the Windows Server-admins here.

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Find Files: Executable files types

Post by Stefan »

TheQwerty wrote:
admin wrote:So, can anybody come up with a list of executable file extensions that everybody else can agree upon?
No, of course not. :P
Since this depends and since many use XYplorer portable...
how about to get those filetypes from the current registry? (maybe add some hardcoded too and then remove dubs)



.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Find Files: Executable files types

Post by TheQwerty »

admin wrote:PS1;.PSC1 ??? not very common
I never said my PATHEXT was common, but sharing what I had for comparison to others.

Besides PS1 are the PowerShell equivalence of batch files and now that Windows ships with PowerShell I think they probably should be included.

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Find Files: Executable files types

Post by admin »

nas8e9 wrote:... and can definitely wreak havoc.
OK, I'm just compiling a list of (potentially) dangerous file types (not sure yet if it totally coincides with executables; if yes all the better). This is what I got:

Code: Select all

.bat.cmd.com.exe.hta.jar.js.jse.lnk.pif.plx.ps1.psc1.scr.shs.vb.vbe.vbs.ws.wsf

Post Reply