scott
scott

Reputation: 435

Is it possible to get explorer context menus for a specified file in c#?

For a given file path, I want to get the explorer context menus of it and then display those items in my application. I have googled for a long time, But didn't find a solution yet.

Upvotes: 2

Views: 131

Answers (1)

kennyzx
kennyzx

Reputation: 12993

The context menu is built from many locations in registry, reconstructing them in code is possible, but not a trivial task.

ShellMenuView is freeware and supports commandline arguments that export the menu commands. You can give it a try.

Upvotes: 1

Related Questions