Home » U++ Library support » U++ Core » FindFile::IsExecutable() [Feature request]
Re: FindFile::IsExecutable() [Feature request] [message #25712 is a reply to message #25698] |
Tue, 09 March 2010 08:17   |
|
luzr wrote on Mon, 08 March 2010 16:55 | What about directory with .exe extension in Windows? 
Mirek
|
Hi Mirek,
You got me Actually I was hoping that someone who actually knows Windows will write better version using win API...
Now, after I gave it a bit more thinking I think the proper way would be reading PATHEXT environment variable and compare it to the extension of files. On Win98 (if you want to support it) fixed list with .exe and .com should be used. What do you think about this? It is slow, but probably not as slow as opening the file and determining the executability from its contents.
Another solution would be omit this method on Windows the same way as some methods are omitted on Linux because the are not well defined (IsArchive,IsCompressed,...).
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Wed May 14 05:02:17 CEST 2025
Total time taken to generate the page: 0.00889 seconds
|