Hi,
I want to check for the existence and if it doesn't exist add some actions in the Explorer's right click (context) menu.
Besides of the above requirement (for which one can find easily solutions on web) I want to add one more:
Suppose that I register the following commands:
- "Command #1" - triggers 'C:\MyProg.exe /cmd1'
- "Command #2" - triggers 'C:\MyProg.exe /cmd2'
... (aso.)
How do I check if there is already a running instance of MyProg.exe and passing it the appropriate command/command line parameter together with the filename on which the user clicked?
(IOW, I want to use the already running instance of my program to do my task and not to open a new one)
A Delphi code snippet would be appreciated.
TIA