I'm a bit lost there - I suppose it could probably be done fairly easily with dopus - but if someone is using Explorer?
I dont see having it running all the time a problem.
- When you say "there is no one good way to get a filename/path so that's why I like to leave it up to the user (and their computer)" do you suspect it wont work for a lot of people; and / or that it would mean it very awkward to code ?-tomos
Well, that's the thing. People use all sorts of file managers so about the only way to make this universal would be to use the clipboard. However, some people don't like applications that screw with the clipboard so that's why I wanted to leave this open-ended and let the user handle getting the filepath to the executable. The actual code to bring up the Open With dialog is easy:
rundll32.exe shell32.dll, OpenAs_RunDLL <filepath>
If I leave it up to the user, they can use the application is any number of applications or scripts. If I tie it down to one specific way of getting the filepath, its usability is lessened. Make sense?