Adding a menu item to Windows Explorer right click context menu in C# [closed]
Asked Answered
S

0

26

I am developing an application in which I want to add a menu item to context menu which appears when we right click one or more file or folders in Windows Explorer. By selecting multiple files or folder and clicking my item in context menu it should send the path of all the files and folders to my application executable for further processing. Please provide me some code for this if possible in C#.net. I searched on internet it is not possible but I think there should be some way because .NET is highly attached to Windows Shell. And if not possible please provide me code in either of these languages VB, VB.net, C, C++, or any other.

Sickle answered 31/12, 2011 at 16:33 Comment(6)
This article should get you started. Edit - Linked to Web Archive version as original post has been removed.Vachill
possible duplicate of Pointers for writing context menu items for windows explorer and C# receiving argumens from Windows Context menu and Extending windows explorer context menu and many more.Serpentiform
This video tutorial definitely covers the Windows Explorer context menu (aka shortcut menu) and should get you started. youtube.com/watch?v=L36u7GudN8k It's not clear if this works when selecting multiple files.Silvia
This is a bit late but this tutorial shows you exactly what you wanted to do. I hope this helps.Dressingdown
There's another tutorial here that may be more to the point of what you're looking for. Also, I have this project that pretty much follows that tutorial to register my app to show up on right click on the selected file extensions: code.google.com/p/j-search-and-replace Take a look at the SetRegistry class and also go over the wiki that explains how to debug in Visual Studio under UAC, which is necessary if you're going to add the registry entries programatically.Carlow
See this article for detailed answer containing sample project.Ringed

© 2022 - 2024 — McMap. All rights reserved.