-
Notifications
You must be signed in to change notification settings - Fork 111
Help
"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 https://support.microsoft.com/en-us/topic/cannot-change-the-default-folder-icons-in-windows-explorer-db49e15d-d95a-bc68-9947-e3ec296f4514
"C:\Users\user\icons\icon.ico"
# exe
"C:\Program Files\7-Zip\7zFM.exe"
# Environment variables are supported
"%LocalAppData%\Programs\Microsoft VS Code\Code.exe"
# script
newFolder.bat
# format
shell:AppsFolder\<Package Name>_<Publisher ID>!<App ID>
# For example: WindowsTerminal
shell:AppsFolder\Microsoft.WindowsTerminal_8wekyb3d8bbwe!App
# with parameters
start "" shell:AppsFolder\Microsoft.WindowsTerminal_8wekyb3d8bbwe!App new-tab -p "cmd"
# simple
"exe": "quick-look://",
# with parameters
"exe": "explorer",
"param": "quick-look://\"{path}\"",
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"
{path} file absolute path
{parent} file parent
#single file only
{name} file name
{nameNoExt} file name without extension, version >=5.0
{extension} file extension, version >=5.0
match all file (not folder)
contains file extension
* --> all
.apkx .mapk --> xx.apk or xxx.apkx
empty --> all
- Regex for file name
.+?\.txt
debug regex :https://regex101.com
must use | as delimiter
.apkx|.apk --> xxx.apkx or xxx.apk
.cpp|.java --> xx.java or xx.cpp
directory/desktop/directory background/drive (v5.5+)
right click on directory only
right click on desktop (right click on the explorer left tree desktop : bug)
right click on directory background
right click on drive
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
For each file,pass [param] to [exe], same as single file
All paths will be connected according to the configuration,then as {path}
If 2 files are selected: path1.txt path2.txt
, --> "path1","path2"
: --> "path1":"path2"
',' --> "path1"','"path2"
note: Every path will be surrounded by quotes
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: \",\"
-->
-noexit -Command Get-FileHash -LiteralPath \""C:\Users\test\Desktop\tftpd32.ini"\",\""C:\Users\test\Desktop\run.bat"\" -Algorithm MD5 | format-list
Menus load faster when cache is enabled, Turn it off and on again to reset the cache
use customeContextMenuDebug.exe to show param
see json:
https://github.com/ikas-mc/ContextMenuForWindows11/blob/main/menuSample/Debug%20Echo.json
https://github.com/ikas-mc/ContextMenuForWindows11/tree/main/menuSample
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.