Skip to content
ikas edited this page Aug 8, 2025 · 32 revisions

Help

Menu Icon

Use Icon from EXE or DLL

To use an icon from an EXE or DLL file, specify the path and index number:

"C:\Program Files\7-Zip\7zFM.exe",0
C:\WINDOWS\System32\SHELL32.dll,196

Note: Change a folder icon and open desktop.ini (hidden) in the folder to find the index number. More information can be found here.

Use Icon File

To use an icon file, specify the path to the .ico file:

"C:\Users\user\icons\icon.ico"

Menu Exe

Run EXE or Script

To run an executable or script, specify the path:

# EXE
"C:\Program Files\7-Zip\7zFM.exe"

# Environment variables are supported
"%LocalAppData%\Programs\Microsoft VS Code\Code.exe"

# Script
newFolder.bat

Run Store App

To run a store app, use the following format:

# Format
shell:AppsFolder\<Package Name>_<Publisher ID>!<App ID>

# Example: WindowsTerminal
shell:AppsFolder\Microsoft.WindowsTerminal_8wekyb3d8bbwe!App

# With parameters
start "" shell:AppsFolder\Microsoft.WindowsTerminal_8wekyb3d8bbwe!App new-tab -p "cmd"

URI Protocols (Limited)

To use URI protocols, specify the exe and param:

# Simple
"exe": "quick-look://",

# With parameters
"exe": "explorer",
"param": "quick-look://\"{path}\"",

Menu Param

The param template will be processed and passed to the [exe].

"{path}"

If you right-click on the C:\test\MpDlpCmd.exe

{path}                                     --> C:\test\MpDlpCmd.exe
"{path}"                                   --> "C:\test\MpDlpCmd.exe"
cmd.exe /s /k pushd "{path}"               --> cmd.exe /s /k pushd "C:\test\MpDlpCmd.exe"
a -ad "{parent}\{nameNoExt}.7z" "{path}"   --> a -ad "C:\test\MpDlpCmd.7z" "C:\test\MpDlpCmd"

Supported Variables

{path}: file absolute path
{parent}: file parent path
{name}: file name (single file only)
{nameNoExt}: file name without extension (single file only, version >= 5.0)
{extension}: file extension (single file only, version >= 5.0)

{path0}:fitst file absolute path (multiple files,version >= 5.6)
{name0}:fitst file name (multiple files,version >= 5.6)
{nameNoExt0}:fitst  file name without extension (multiple files,version >= 5.6)
{extension0}:fitst  file extension (multiple files,version >= 5.6)

Match File

All (v5.0+)

Match all files (not folders).

Extension Like (Not Recommended)

Contains file extension:

*            --> all
.apkx .mapk  --> xx.apk or xxx.apkx
empty        --> all

Regex

Regex for file name:

.+?\.txt

Debug regex: regex101

Extension List (v5.0+)

Must use | as delimiter:

.apkx|.apk   --> xxx.apkx or xxx.apk
.cpp|.java   --> xx.java or xx.cpp

Match Folder

Directory/desktop/directory background/drive (v5.5+)

Directory

Right-click on directory only.

Desktop

Right-click on desktop (right-click on the explorer left tree desktop: bug).

Background

Right-click on directory background.

Drive

Right-click on drive.

Match Multiple Files

Two modes are supported:

  • EACH: Execute [exe] on each path.
  • JOIN: Execute [exe] only once.

Note: When [Multiple Files] is turned on, extension matching and folder matching are ignored.

Multiple Files EACH Mode

For each file, pass [param] to [exe], same as single file.

Multiple Files JOIN Mode

All paths will be connected according to the configuration, then as {path}.

Path Delimiter

If 2 files are selected: path1.txt path2.txt

,      --> "path1","path2"
:      --> "path1":"path2"
','    --> "path1"','"path2"

Note: Every path will be surrounded by quotes.

Param

When multiple files are selected, the [Param] may be different. So, the [Param] can be overwritten here:

multipleParam: -noexit -Command Get-FileHash -LiteralPath \"{path}\" -Algorithm MD5 | format-list
delimiter: \",\"

Example:

-noexit -Command Get-FileHash -LiteralPath \""C:\Users\test\Desktop\tftpd32.ini"\",\""C:\Users\test\Desktop\run.bat"\" -Algorithm MD5 | format-list

Menu Advanced config

Working Dictionary

Supported Variables

{parent}: file parent path
{path0} fitst file absolute path (multiple files or single file,version >= 5.6,for test)  

Menu Cache

Menus load faster when cache is enabled. Turn it off and on again to reset the cache.

Debug Helper

Use customeContextMenuDebug.exe to show param. See JSON: Debug Echo.

More Menu Samples

Menu Samples

Menu Config Files Folder

C:\Users\yourname\AppData\Local\Packages\{appId}\LocalState\custom_commands

If you need to back up, just copy all the files here to a safe folder.