U++ framework
Do not panic. Ask here before giving up.

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: 1796
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: Sun Oct 18 03:12:46 GMT+2 2026

Total time taken to generate the page: 0.07420 seconds