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 #25712 is a reply to message #25698] Tue, 09 March 2010 08:17 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

luzr wrote on Mon, 08 March 2010 16:55

What about directory with .exe extension in Windows? Smile

Mirek

Hi Mirek,
You got me Smile 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
 
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:02:17 CEST 2025

Total time taken to generate the page: 0.00889 seconds