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 #25741 is a reply to message #25728] Wed, 10 March 2010 09:00 Go to previous message
mirek is currently offline  mirek
Messages: 14258
Registered: November 2005
Ultimate Member
koldo wrote on Tue, 09 March 2010 07:22

Hello Honza

This is true:
Quote:

Checking the magic number is probably the safest (and slowest) method. Also I read somewhere that even "ZM" should work


This is uncertain Smile :
Quote:

and some executables could even start with "PE".


The "PE" chars are inside the header but not in the beginning. In this case "MZ" will be also in the beginning of the file.


As for this... Windows Shell will use "executable" icon for the file as soon as it has '.exe' extensions and tries to execute it on double-click. So what Windows Shell considers good practice is a good practice for me as well... Smile

Mirek
 
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 04:59:31 CEST 2025

Total time taken to generate the page: 0.03812 seconds