Wednesday 24 July 2019

windows - How can I run a batch file when Firefox starts?

I want to run a .bat file when any .exe file (such as Firefox) is double clicked. I want to run this .bat file when Firefox runs. Is there any way to do this?


I tried with this batch code:


reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\firefox.exe" /v Debugger /d "D:\Desktop\m.bat" /f

Here, m.bat is the file which I want to run when Firefox runs.


Image of my Registry: image of my registry

No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...