Defrag Tools #176 - CMD and PowerShell Context Menus

Download this episode

Download Video

Download captions

Download Captions


In this episode of Defrag Tools, Andrew Richards and Chad Beeder delve into the way the Shell uses the registry to provide the Right-Click behavior of a (File Explorer) Folder.

We add sub-menus to the Directory context menu, allowing a Command Prompt or PowerShell prompt to be opened in the current folder, either elevated and non-elevated.

The registry file created is provided on Andrew's MSDN blog (Where in the API is Andrew Richards?), and the Defrag Tools OneDrive.

Enhancing the "Open Command Prompt here" Context Menu experience (Andrew's MSDN blog)
Creating Shortcut Menu Handlers (MSDN)




Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • User profile image

      Great video. Have been using SHIFT all these years :(. Thanks for the blog post as well :)

    • User profile image

      Amazing Andrew. You are my hero :) 

    • User profile image

      Love the new menu design. I cannot seem to get the Windows Subsystem for Linux bash icon to show in the menu's that I have tried to setup. There are also issues with WSL's bash involving working dir and elevation which I will raise on their github if I can get the icon to display. Is there anything special I need to do? I was hoping to use environment variables in the path to make the .reg shareable as the icon is stored in the user profile. The path is %USERPROFILE%\AppData\Local\lxss\bash.ico

    • User profile image

      @LeoJBG: I'd just copy bash.ico into c:\windows -- and skip trying to get anything more complex to work.

    Add Your 2 Cents