Windows Explorer Context Menu Integration, get file that was right clicked on
-
26-09-2019 - |
Question
I've already figured out how to add a menu item to the right click context menu of the windows explorer using the registry. I currently have it set to launch my application when my menu item is clicked.
However, I want to know if there is a way to know what file is was right clicked on. I thought it would have been sent as a command line argument to the launched program, but it's not. Any ideas?
Solution
Add %L
in the command line for the application you are launching at the place where you want the file name.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow