When a user double-clicks a file to launch it, I need to perform a custom action if the file meets certain criteria.
On WindowsXP, you can use ShellExecuteEx workarounds in explorer.exe, and the file name was available. I need to do something similar in Windows 7 and 8.
How can I execute some code when double-clicking files and have the file name?
I need a method that will continue to work if updating Windows Updates patches.
source
share