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   |
|
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 
Honza
|
|
|
Goto Forum:
Current Time: Wed May 14 11:33:25 CEST 2025
Total time taken to generate the page: 0.03123 seconds
|