Questions tagged [windows-shell-extension-menu]
13 questions
252
votes
20 answers
How to add a "open git-bash here..." context menu to the windows explorer?
How to add a context (aka right click) menu to the windows explorer that, when clicked, opens the git-bash console in the current explorer folder?

sergej
- 17,147
- 6
- 52
- 89
151
votes
5 answers
How add context menu item to Windows Explorer for folders
I have found out how to add right-click context menu items to files on Windows Explorer, by adding keys to the registry. I.e. I can right-click on a file in Explorer and run a custom app against that file.
I would like to do the same for a folder…

Elan
- 6,084
- 12
- 64
- 84
41
votes
3 answers
How to Pass MULTIPLE filenames to a Context Menu Shell Command?
Passing a single filename to a context menu shell command is simple:
[HKEY_CLASSES_ROOT\*\shell\MyProgram\Command]
@="program.exe %1"
But if I select multiple files, program.exe is invoked for each such selected file.
What I would like to do…

WinWin
- 7,493
- 10
- 44
- 53
14
votes
4 answers
How to add a "Git Bash Here" context menu option to the windows explorer in Windows 11?
I've recently switched to Windows 11 and after installing git, I found out that the context menu option, to easily launch git bash, is not there. The good news is, that it is possible to access the old style context menu, along with the desired "git…

David Oganov
- 976
- 1
- 11
- 23
3
votes
1 answer
Can I limit folder rename, copy, move, delete operations using SFGAO flags?
I need to limit certain operations with folder in Windows Explorer. For example disallow copy, move, rename, delete operations or make it read-only (disallow creation of new files and folders in it).
I see that there are SFGAO flags that looks what…

Panzer
- 124
- 4
3
votes
2 answers
Add to Windows Shell Extension Context Menu
I have read these:
Adding item to the Desktop context menu in Windows
http://www.informit.com/articles/article.aspx?p=169474
http://msdn.microsoft.com/en-us/library/bb776852(VS.85).aspx
But I cannot find an up-to-date and straightforward piece of…

williamparry
- 488
- 1
- 7
- 15
2
votes
1 answer
Is any way register shell extension by Regasm.exe without codebase?
this is problem.
I developed a shell extension of Shell Context Menus.
(use SharpShell, enter link description here)
I can register it by using regasm.exe with "/codebase" attribute.
And without this attribute the shell extension doesn't work.
But…

李柏緯
- 21
- 2
1
vote
1 answer
Shortcut Menu with Dynamic Verbs for FILE_ATTRIBUTE_OFFLINE
I want that my Shortcut Menu via QueryContextMenu method (dynamic verbs), is visible as well for "Placeholders". Placeholders are Files that only exist locally virtual and needs to be downloaded from the cloud sync provider before the file can be…

Trafo
- 71
- 7
1
vote
2 answers
Shell menu item separator
My question may be the repeated one here but even after googling i havn't got the solution yet.
I have added a shell context menu item for files i.e. when you right click on a file within explorer the menu shows my custom menu item.
I have used…

IrfanRaza
- 3,030
- 17
- 64
- 89
0
votes
0 answers
Windows11 explorer context menu limited to 2 levels?
I'm trying to migrate an existing ShellExtension to the new Windows11 explorer context menu, but such menus seem to be very limited. What I learned so far is that one has to implement the IExplorerCommand interface, at least if it later should be…

martinstoeckli
- 23,430
- 6
- 56
- 87
0
votes
1 answer
Disambiguation: coding a Shell Extensions for the context menu of Windows Explorer.exe vs Use Shell ContextMenu in Your Applications
I struggled for hours trying to find information on the second point: Use Shell ContextMenu in Your Applications. There are tons of discussion on how to code a Shell Extensions and add it to the context menu of Explorer.exe.
So, where can I find…

Revious
- 7,816
- 31
- 98
- 147
0
votes
1 answer
SHGetInstanceExplorer function returns E_FAIL
When I try to use the SHGetInstanceExplorer function, it returns an E_FAIL HRESULT
I've defined these two functions with differents parameters (to test them), both definitions returns the same error:

ElektroStudios
- 19,105
- 33
- 200
- 417
0
votes
1 answer
Selective Context Menu in Explorer
I want to add a context menu option for deeper integration of one of my programs. However, I hate when I have 20+ items in this heavily used menu - so I wont make my end user endure this as well.
I know the context menu can be customized by file…

Mark Lopez
- 180
- 3
- 9