racxen
racxen

Reputation: 43

Windows Explorer Context Menu Integration, get file that was right clicked on

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?

Upvotes: 4

Views: 1287

Answers (1)

Franci Penov
Franci Penov

Reputation: 76021

Add %L in the command line for the application you are launching at the place where you want the file name.

Upvotes: 5

Related Questions