0

Can anyone help me out with abit of code that will detect the location of any exe file on a hard drive / cd?

am trying to build a simple exe launcher thanks.

2
Contributors
4
Replies
20
Views
1 Year
Discussion Span
Last Post by Simon180
Featured Replies
  • If all you want to do is to launch the app then the easiest way is not to find it at all. Just lauch the EXE without specifying its path (for example, Notepad.exe rather than c:\blah\blah\blah\Notepad.exe) and let the OS find it for you. If the EXE is in your … Read More

1

If all you want to do is to launch the app then the easiest way is not to find it at all. Just lauch the EXE without specifying its path (for example, Notepad.exe rather than c:\blah\blah\blah\Notepad.exe) and let the OS find it for you. If the EXE is in your path this should work and is worth a try to avoid a possible delay whilst you search for the exe.

If you do have to search for the EXE just remember that an EXE is just a file so you could to use FindFirst and FindNext to locate it. There are many examples out there. A reasonable place to start is http://stackoverflow.com/questions/5991040/how-to-search-different-file-types-using-findfirst

0

Ya I done that mate but this is for searching for game .exes and not everyone installs there games to same folder so need way to find the files I checked out the link you shared and tried it out but dont seam to work it locks up my test app.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.