Defrag Tools #176 - CMD and PowerShell Context Menus

Download this episode

Download Video

Download captions

Download Captions

Description

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.

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

 

Embed

Format

Available formats for this video:

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

    The Discussion

    • User profile image
      habula

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

    • User profile image
      vineelkovvu​ri

      Amazing Andrew. You are my hero :) 

    • User profile image
      LeoJBG

      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
      windev

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

    • User profile image
      Peter

      Excellent stuff, many thanks! Any chance to get this on entire drives to work as well? Mirror the settings to HKEY_CLASSES_ROOT\Drive\Shell etc.?

    • User profile image
      windev

      @Peter: Yes, just clone it over and it'll work.

    • User profile image
      Templaar

      Is defrag tools going to be continued?

    • User profile image
      windev

      @Templaar:Yes -- definitely are still alive :) We've got a few shoots in edit now.

      RS2 end-game kept me (Andrew) too busy to find time for it, Chad's been flying the world a lot to talk to Partners, and //build/ closed the Channel 9 studios (they do 300+ pre-shoots) for weekly shows.

      Keep the show ideas coming - to defragtools@microsoft.com -- after 170+, we're running out of tools that haven't been covered -- and that we can find an expert for.

      If you'd like to see re-visits (second deep-dive) of certain tools -- we can do that for sure.

      And I'm always up for just showing random debugging tips.

    • User profile image
      Magic​Andre1981

      after 170+, we're running out of tools that haven't been covered -- and that we can find an expert for.

       

       

      cover Fieldmedic to capture ETW traces on Windows 10 mobile

    • User profile image
      Peter

      Hi Andrew, thanks for the feedback on cloning over the registry entries, works like a charm! :) Suggestion for another episode: Microsoft's UIA, especially with the tools 'Accessible event Watcher' (accevent) and 'Inspect', not 'mainstream' so to say, but essential for blind and visually handicapped people.

    • User profile image
      Benayou

      Actually, this has been one of the coolest defrag tools presentation. Thanks Andrew.

      Nice one. I will share this tweak with some friends.

    • User profile image
      Rusty

      Some of the tools you have reviewed in the past have been updated several times and have some new capabilities such as WPT with flame graphs. Would love to see some new reviews for many of these tools.

    Add Your 2 Cents