Thanksgiving DealsAmazon USThanksgiving week: Black Friday picks start earlyAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowThanksgiving DealsAmazon USDo not wait for the rush - compare today's dealsAmazon US: current deals, useful picks and tech finds.See Picks×
FREEDOM251

Freedom251 › Blog

Windows 11 Right-Click Menu Shortcuts: Add Your Own Command Safely

By Freedom251 Team · · 10 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

Adding a custom shortcut to the Windows 11 right-click menu usually requires only a per-user Windows Shell registry entry: create a verb under the object you want to target, then give that verb a command subkey that launches your program or script. You can target every file, folders, the empty background inside a folder, or the desktop background. The steps below use HKEY_CURRENT_USERSoftwareClasses, so they do not require administrator permission.

Choose the target first, quote both the executable path and the selected-file argument, and treat menu placement as build-dependent. Microsoft documents the registry structure, but does not guarantee that a custom static verb appears in the first Windows 11 menu rather than under Show more options on every build.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What is a custom Windows 11 context-menu shortcut?

A context-menu shortcut is a Shell verb: a named command Windows associates with an object such as a file or folder. Microsoft Learn describes the basic method as creating a registry entry for each command. A static verb is always defined for its target; when the user selects that target and chooses the verb, Windows expands the command line and starts the registered program.

The normal registry shape is:

HKEY_CURRENT_USERSoftwareClasses<target>shell<VerbName>
    (Default) = Text shown in the menu
    command
        (Default) = "C:\Path\Program.exe" "%1"

The value under the verb key is the display text. The value under command is the launch line. %1 represents the selected path in Microsoft’s examples. Quoting it is important because a path such as C:ProjectsAnnual report.docx contains spaces.

Popular on Amazon
Sale
CloudValley Adjustable Laptop Stand, Magnetic Phone Holder, Black | Aluminum Slim Monitor Side Mount Clip for iPhone MagSafe & All Phones, Portable Foldable Computer Expansion Bracket
  • Aluminum Slim Computer Side Mount Clip: Compatible with all phones, featuring a portable foldable expansion bracket in sleek black finish
  • Upgraded Magnetic Mount Technology: Designed for laptop, desktop monitor, MacBook, iPad and Tesla car screen with stable adsorption, adjustable angle, and dual-screen interaction support for improved office efficiency
  • High-End Metal Craftsmanship: Selected high-hardness aluminum alloy with CNC precision machining, matte plating process, delicate texture that is wear-resistant and anti-scratch
  • Strong Magnetic Attachment: Features upgraded high strength magnet with 200% increased magnetic force for firm phone attachment, innovative ring-shaped heat dissipation design prevents overheating and ensures no signal interference
  • Wide Range of Compatibility: Works with iPhone 18/17/16/15/14/13/12 series including Pro Max/Mini versions, includes 2 metal rings for non-magnetic phones or cases for full device compatibility

This method is appropriate for a straightforward action that can be described by one command line. If the menu item must be calculated separately for every file, a compiled shortcut-menu handler is the more involved Shell-extension route.

Which object should the shortcut apply to?

The registry target controls where Windows offers the command. Use the narrowest target that makes sense for the action; a conversion command intended for images, for example, should not be offered on every folder or on the desktop background.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Target key Where the command can apply Typical use
* All files Send a selected file to a tool
Folder All folders Run an operation on a selected folder
Directory File-system folders Commands that act on a selected directory
DirectoryBackground The empty area inside a File Explorer folder Open a terminal or script in the current folder
DesktopBackground The empty desktop background Launch a desktop-level utility

These targets have different meanings in Microsoft’s Shell reference. Right-clicking a folder icon selects the folder itself; right-clicking empty space inside that folder selects the folder background. Do not substitute one target for the other.

You can also place a verb below a file type’s ProgID Shell key. That is useful when the command belongs to one registered file type rather than every file. Microsoft’s Verbs and File Associations documentation describes this association-based structure.

What do I need before editing the registry?

You need the exact executable or script path, the arguments that program accepts, and a decision about whether the selected path should be passed as %1. A command that acts on the selected item normally needs "%1"; a command that does not use a selection can omit the argument only when the program’s own syntax supports launching without one.

  1. Confirm the target. Decide between all files, folders, a folder background, the desktop background, or a specific ProgID.
  2. Record the launch line. Include the full executable path and quote any element that can contain spaces.
  3. Back up the relevant key. In Registry Editor, select the key you plan to change, choose File > Export, and save the .reg file somewhere you can find later.
  4. Use a distinctive verb name. The internal key name can be simple and without spaces; the default value is the friendly text users see.

Registry changes affect the account and object scope you choose. A typo in a command line usually produces a menu item that does nothing, while a typo in a key path can place the command on the wrong objects. Exporting first gives you a direct way to restore the previous state.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How do I add an app to the context menu for every file?

Use the per-user * target and create a verb with a quoted command line. The following example adds Open with My Tool to file menus and passes the selected file path to Tool.exe.

Also popular on Amazon
Sale
AboveTEK Portable Laptop Lap Desk w/Retractable Left/Right Mouse Pad Tray, Non-Slip Heat Shield Tablet Notebook Computer Stand Table w/Sturdy Stable Work Surface for Bed Sofa Couch or Travel
  • Anti-Slip Surface - Transform your laptop into a mobile workstation with the AboveTEK portable laptop lap desk. The anti-slip surface provides a strong grip for laptops up to 15.6 inches(Diagonal), while the double rubber strip on the bottom ensures a stable display or typing experience on your lap, couch, or bed.
  • Retractable Mouse Pad - Retractable laptop mouse pad extends on both directions for the left/right handed with elevation along the edges for stopping mouse from falling off. The size of laptop tray is 14" X 9.7" and the size of mouse pad is 7.4" X 6.1".
  • Effective Heat Shield - The effective heat shield made of sturdy and thick material protects your laptop from overheating. Prioritizes your comfort and safety, an ideal lap pad or board for working anywhere.
  • EASY to Carry and Store - With an ergonomic and simplistic design, the lap desk is portable to store in a backpack. Only 15" in size, 2.2 lb of weight and with slim 0.6 inch thickness, it is ready to be easily carried around.
  • Widely Applicable - The smooth platform accommodates laptops and tablets up to 15.6 inches(Diagonal), making it a versatile accessory and one of the best gifts for mom, dad, students and professionals. Perfect for use as a laptop bed tray or tablet holder anywhere at home, library, or park.
  1. Press Win+R, type regedit, and press Enter. Approve the prompt if Windows displays one.
  2. Navigate to HKEY_CURRENT_USERSoftwareClasses. This per-user location is documented by Microsoft and avoids the elevated permission required for a machine-wide registration.
  3. Expand or create the * key, then create a key named shell.
  4. Inside shell, create a key such as MyTool. Select it, double-click its (Default) value, and enter the text you want shown, for example Open with My Tool.
  5. Right-click the MyTool key, choose New > Key, and name the new key command.
  6. Select command, open its (Default) value, and enter a line like this, replacing the path with the actual location of your program:
    "C:PathTool.exe" "%1"
  7. Close Registry Editor and check a file’s context menu. If the item is not immediately visible, open the expanded menu with Show more options; Windows 11 build behavior can place static verbs differently.

Microsoft’s Extending Shortcut Menus documentation shows the same Shell-and-command pattern. The example above is a pattern to adapt, not a universal path or a claim that every application accepts the same arguments.

How do I add a command for folders?

Replace the * target with the folder target that matches the action. The verb and command subkeys are otherwise built the same way.

Selected folders

For a command that should appear when a folder itself is selected, use either Folder or Directory, depending on the scope you need. A representative structure is:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
HKEY_CURRENT_USERSoftwareClassesDirectoryshellMyFolderCommand
    (Default) = Run folder action
    command
        (Default) = "C:\Path\FolderTool.exe" "%1"

%1 is the selected folder path. Use Folder when the action is intended for folder objects generally; use Directory for file-system directories as described in Microsoft’s predefined Shell targets.

The empty area inside a folder

To offer a command when the user right-clicks blank space in a File Explorer folder, use DirectoryBackground:

HKEY_CURRENT_USERSoftwareClassesDirectoryBackgroundshellOpenHere
    (Default) = Open with My Tool here
    command
        (Default) = "C:\Path\Tool.exe"

This action is not attached to a selected file or folder, so the command line shown above has no %1. Whether the program can determine the current folder depends on its own command-line interface. Some applications accept a current-directory argument or a folder switch; supply that only when the application documents it.

Do not use DirectoryBackground when you want the command on a folder icon. In that case, register under Directoryshell or the appropriate folder target and pass "%1".

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Also popular on Amazon
Sale
LAPGEAR Home Office Lap Desk – Pink, Fits 15.6” Laptops | Built-In Mouse Pad & Phone Slot, Integrated Device Ledge, Dual-Bolster Microbead Cushion, Carry Handle
  • Spacious Design: Measuring 21.1" wide and 12" deep, our lap desk comfortably fits most laptops up to 15.6". Extra room for accessories ensures convenience.
  • Enhanced Functionality: Packed with handy features, including a 5x9" precision tracking mouse pad and a built-in phone slot for seamless work or video calls. Plus, enjoy laptop support with the integrated device ledge.
  • Cool Comfort: Enjoy a stable surface with our lap desk's dual bolster cushion, designed for comfort and airflow, keeping your lap cool during extended use.
  • Durable Surface: Work with confidence on our lap desk's solid surface, featuring a blush pink color, ensuring optimal air circulation to prevent your laptop from overheating.
  • On-the-Go Convenience: With an integrated handle and lightweight design (2.14 lbs), our lap desk is portable for travel or moving around the house, offering flexibility in any space.

How do I put a shortcut on the desktop background?

Use DesktopBackground for the empty desktop area. The structure is:

HKEY_CURRENT_USERSoftwareClassesDesktopBackgroundshellMyDesktopCommand
    (Default) = Launch desktop utility
    command
        (Default) = "C:\Path\Utility.exe"

This applies to right-clicking the desktop background, not to files or shortcuts sitting on the desktop. A command that needs a selected desktop item belongs under a file or folder target instead.

How do I make the command appear only with Shift-right-click?

Add an empty extended string value to the verb key. Microsoft documents this as the way to make a verb available when the user holds Shift while opening the shortcut menu.

  1. Select your verb key, such as MyTool, not its command subkey.
  2. Choose New > String Value.
  3. Name the value exactly extended and leave its data empty.
  4. Close the menu and use Shift-right-click on the matching object to look for the command.

An extended verb is useful for an infrequent or advanced action that would clutter the ordinary menu. It is not a replacement for choosing the correct target scope: the command will still be offered only for the files, folders, or backgrounds covered by its parent key.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can I register the shortcut for every Windows account?

Yes, but machine-wide registration belongs under the equivalent HKEY_LOCAL_MACHINESoftwareClasses location and normally requires administrator permission. The per-user location, HKEY_CURRENT_USERSoftwareClasses, is safer for a personal shortcut and is the route Microsoft documents for avoiding elevated permission.

Use machine-wide registration only when you administer the computer and want the command for multiple accounts. Keep the same shell, verb, and command structure, but make sure the executable is available to every intended user. A per-user entry will not automatically appear in another account.

Can I create the entry with a .reg file?

You can export a key or create a text-based registry file, but treat any sample as an editable template. Registry files require escaped backslashes and quotation marks, and importing one writes exactly the paths and values it contains.

Also popular on Amazon
Sale
MNN 15.6" 1080P Portable Monitor IPS USB-C HDMI Gaming Screen for Laptop | 15.6" FHD IPS HDR, USB-C one-cable, PC/Mac/Phone/Switch, Smart Case,Laptop , low blue, work&game
  • Full HD Portable Monitor - MNN 15.6inch portable laptop monitor with 1920*1080 resolution, advanced IPS glossy screen support 178° full viewing angle, it renders accurate and bright color, draws you into the video or game with lifelike colors and amazing detail.It can effectively reduce blue light radiation damage, no flickering, eye-care, and make it easier to watch for a long time.A second monitor for working from home.
  • Double Type-C Port -For Plug & Play, the MNN monitor provides 2 Full Feature Type-C ports. Only One USB Type-C Cable is required to connect to the power supply & display signal transmission. NOTE: Your device should support thunderbolt 3.0 or USB 3.1 Type C DP ALT-MODE.which supports multiple connect ways to your laptops, PC, Phones, Macbooks, PS5/PS4, Xbox, and Switch.
  • Lightweight Ultra Slim for Travel - As a portable external monitor,MNN portable laptop monitor easily accommodate to every suitcase and backpack and stress-free when you are holding it for a long time. They are truly portable computer monitors for travelers, students, gamers,engineers, and everyone.
  • Give consideration to work and games - through multiple display modes [Copy Mode/Extended Mode/Second Screen Mode/Portrait Mode], we can bring you a clear second screen in the meeting, and expand the screen anytime and anywhere to improve work efficiency and improve the quality of life. Adjusting to HDR mode can upgrade the image to a new level, providing you with brighter highlights,deeper and more realistic colors, more realistic images, and amazing viewing/gaming experience.
  • Powerful Smart Cover - MNN portable external monitor can work in both landscape and portrait mode, can be used as a gaming monitor, screen extender for laptop or phone. Comes with a scratch-proof smart cover made of durable PU leather exterior, doubles as a stand, provides comprehensive protection for this portable computer monitor.
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USERSoftwareClasses*shellMyTool]
@="Open with My Tool"

[HKEY_CURRENT_USERSoftwareClasses*shellMyToolcommand]
@=""C:\Path\Tool.exe" "%1""

Save the text with a .reg extension only after replacing the placeholder executable path. Double-clicking the file imports the values for the current user. Export your existing key first, and delete the imported keys if the result is not what you intended. The registry pattern is documented; this sample is not a claim that the placeholder path or application has been tested.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why is my shortcut missing or doing nothing?

Most failures come from scope, quoting, or the application’s command-line syntax. Check these branches in order.

  1. Wrong object target: If you registered under *, test a file; if you registered under DirectoryBackground, right-click empty space inside a folder rather than a file or folder icon.
  2. Wrong key location: Confirm that the path begins with HKEY_CURRENT_USERSoftwareClasses and that the hierarchy is targetshellverbcommand. A value placed directly under shell will not provide the expected launch line.
  3. Unquoted paths: Put quotation marks around the executable and around %1. Without them, spaces in either path can split the command into unintended arguments.
  4. Incorrect argument convention: Some programs expect a switch before the file path, multiple files, or no file path at all. Use the application’s documented syntax; do not assume every executable treats %1 identically.
  5. Menu location: Check both the compact Windows 11 menu and Show more options. Microsoft’s registry documentation does not establish one universal location for custom static verbs on every current Windows 11 build.
  6. Extended visibility: If you added extended, the item is intentionally hidden from an ordinary right-click. Hold Shift while opening the menu.
  7. Stale Explorer display: Close and reopen the affected File Explorer window after editing. If the old menu persists, sign out and back in before assuming the registry entry is wrong.

If the command appears but reports that the file cannot be found, inspect the command value character by character. The executable path must point to a real file, and the selected path must be enclosed in quotes. If the application opens but ignores the selection, the registry entry may be correct while the application expects a different argument format.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How do I remove a custom context-menu command?

Delete only the verb key you created, not the entire target or shell key. In Registry Editor, navigate to the target’s shell key, right-click your verb (for example, MyTool), choose Delete, and confirm. Its nested command key and any extended value are removed with it.

If you imported a .reg file, use the exported backup to identify the exact key. Never delete a broad parent such as *, Directory, or shell merely to remove one command; those parents may contain Windows or other applications’ registrations.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When is a static verb not enough?

A static verb is a fixed command line. It is a good fit when the same program should be offered for a known target scope and can receive the selected path through its command-line interface.

A shortcut-menu handler is different: it is a Shell extension that Windows queries and that can add menu items based on the individual file or selection. Microsoft’s Registering Shell Extension Handlers and Creating Shortcut Menu Handlers documentation describe this more involved development path.

Also popular on Amazon
Sale
AIKOKOK Wireless Bluetooth Mouse, Rechargeable Dual Mode Mouse, Black | BT 5.2 & 2.4G USB Receiver, 3 Adjustable DPI,LED Lights,Slim,Silent,Portable Computer Mouse for Laptop,PC,MacBook,iPad,Tablet
  • 【Rechargeable Optical Mouse/Energy Saving】:Computer Mouse Built-in Durable Rechargeable Battery,High Cycle Life,No Need Change Battery;Laptop Mouse Wireless Can Be Easily Charged Using the Included USB Cable,Just 2 Hours Charging,Mouse Wireless Can Use Than 5 Days of Working Time and 30 Days of Standby Time,Standby Time is Very Long;Tablet Mouse Will Fall Asleep After 5 Minutes No-Operation to Save Power and Provides Long Term Usage;You Can Wake ipad Mouse Up By Clicking any Button
  • 【LED Colorful Breathing Light】:This Wireless Mice With 7 Different Colorful LED Breathing Lights,7 Different Color Changes Randomly While in Use,Offering Soothing Lighting;Creating Cool and Fancy Atmosphere for Office and Gaming,LED Mouse Can Give You More Fun During
  • 【Wireless Bluetooth Mouse Dual Mode】:Mouses(BT5.2/3.0 and 2.4 G)Dual Mode Realize the Free Switching of One Wireless Bluetooth Mice Between Two Devices;Bluetooth Mouse Mode Can Connect One Device Through BT5.2/3.0 and Wireless Mouse Mode Another Device Through a 2.4G USB Receiver,No Need to Install any Driver,Plug and Play;Wireless/Bluetooth Technology Provides Powerful and Reliable Connection,Which Can Enables Fast Data Transmission Without Delays or Dropouts,Effective Up to 10 Meters(33 feet)of Range
  • 【Silent/Fingerprint-proof】:Silent Laptop Mice Button Silent Click Design Reduces 90% Noises,Help You Concentrate on Your Work、Study Without Disturbing Others Besides You;Apple Mouse Fingerprint-proof Surface Coating Technology Design Gives Your a Skin-Like Touch,The sturdy anti-slip rubber scroll wheel ensures that your hand will not slip when scrolling;Slim Mouse Offers Your Hand Maximum Support and Comfort
  • 【Wide Compatibility Wireless Mouse】:Wireless Bluetooth Mouse For Laptop/Computer/Apple/Notebook/Tablet/Macbook/ipad/iPhone;Mice is Compatible With Android/Chromebook/Windows/Vista/Linux/Notebook/Mac OS and Other Bluetooth Devices

Choose a handler only when a fixed registry verb cannot express the behavior you need, such as deciding dynamically whether a command is appropriate for each file. A handler has greater implementation and maintenance complexity than a per-user static entry, so start with the registry pattern when a simple launch command is sufficient.

What should you check before keeping the shortcut?

  • The command is registered under the intended target, not a broader one by accident.
  • The display text clearly states the action and does not imply behavior the program cannot perform.
  • The executable path is quoted, exists at the location entered, and is accessible to the account using the menu.
  • %1 is quoted when a selected file or folder is passed.
  • The command is ordinary or Shift-only intentionally.
  • You have an exported backup of the key so the change can be reversed.
  • You have checked both Windows 11 menu surfaces instead of assuming a fixed placement.

The result is a personal, built-in Windows Shell customization with no separate utility required. Keep the target narrow, keep the command line explicit, and remove the verb if the application is uninstalled or its path changes.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Frequently Asked Questions

Will a custom registry verb appear in the new Windows 11 menu or only in Show more options?

It depends on the Windows 11 build and the target being registered. Microsoft’s Shell references define the registry structure but do not promise one universal placement, so check both the compact menu and Show more options.

Can one context-menu command receive more than one selected file?

The documented static example uses the single-selection placeholder %1. Multi-selection behavior depends on the Shell verb and the application’s command-line contract; do not assume that replacing it with an ad-hoc placeholder will work without documentation for that program.

Is editing HKEY_CURRENT_USER reversible if I make a mistake?

Yes. Export the key before editing, then restore that .reg backup if necessary. For a single custom command, deleting its verb key is safer than removing the parent target or shell key.

Can a script be launched instead of an .exe file?

Yes, provided the command line invokes the script through the interpreter or launcher it requires and passes the selected path in the syntax that interpreter expects. Quote the interpreter path and any argument containing spaces just as you would for an executable.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply. Prices as of November 21, 2026 1:01 pm GMT+0530.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.