I want to write/capture the event when I double click on my file located in Windows folder. Assume that we have some txt
file located in D:\MyTest\Example1.txt
When I double click on the file, the file should not open whereas it should fire an event/trigger/service
to execute some tasks.
I tried with FileSystemWatcher
in C#. But, when I double click on the file, the file is getting opened.(It should not).
A simple requirement for your better understanding given below.
When you double click on any txt file in Windows, it should invoke a simple batch file (Example: a.bat) to display the today's date. Conditions: When you double click on the file, the .bat file should run without opening the actual txt file.