Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » FindFile::IsExecutable() [Feature request]
Re: FindFile::IsExecutable() [Feature request] [message #25726 is a reply to message #25685] Tue, 09 March 2010 12:08 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi,

Mirek:
Thank you, that is enough for me...

Mindtraveller:
Yes, PATHEXT contains extensions that can be executed from console. In some sense you could even call any file executable, if it has extension associated with some program (as there is no difference visible in some cases, e.g. opening file.py in python.exe). But for practical use, .exe is probably enough...

Koldo:
Checking the magic number is probably the safest (and slowest) method. Also I read somewhere that even "ZM" should work and some executables could even start with "PE".

Anyway, I'm happy now, whatever on top of this is just bonus Smile

Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Format(Time time, bool seconds) problem
Next Topic: CParser enhancements
Goto Forum:
  


Current Time: Wed May 14 05:05:49 CEST 2025

Total time taken to generate the page: 0.03145 seconds