|
本帖最后由 527104427 于 2022-11-30 21:07 编辑
贡献几个由PECMD注册的右键:(保存为wcs,拖到pecmd上面即可拥有右键菜单)
set^ EnviMode=1
set^ ForceLocal=1
//多开
REGI $HKCR\*\shell\Locate\\=定位
REGI $HKCR\*\shell\Locate\\Icon=explorer.exe,0
REGI $HKCR\*\shell\Locate\Command\\=explorer.exe /n,/select,"%%1"
REGI $HKCR\Directory\shell\Locate\\=定位
REGI $HKCR\Directory\shell\Locate\\Icon=explorer.exe
REGI $HKCR\Directory\shell\Locate\command\\=explorer.exe "%%1"
//复制路径
set commandline="%MyName%" team set^ EnviMode=1| set^ ForceLocal=1 | set$ nl=0d 0a| fdir --fullfile --long a="%%1"| fdir --fullfile --short b="%%1"| fdir --fullfile --volume c="%%1"| fdir --fullfile --part d="%%1"| fdrv e=%%%%d%%%%| sed -ex f=0,[^0-9], ,e| mstr * g,h=<1*>f| sed -ex i=1,\\Harddisk%%%%g%%%%Partition%%%%h%%%%\\,\\GLOBALROOT\\device\\harddisk%%%%g%%%%\\partition%%%%h%%%%\\,d| find *<>a, set< a=%%%%nl%%%%| find *<>b, set< b=%%%%nl%%%%| find *<>c, set< c=%%%%nl%%%%| find *<>d, set< d=%%%%nl%%%%| find *<>i, set< i=%%%%nl%%%%| set^ Clipboard=%%%%a%%%%%%%%b%%%%%%%%c%%%%%%%%d%%%%%%%%i%%%%
REGI $HKCR\*\shell\CopyPaths\\=复制路径(多行)
REGI $HKCR\*\shell\CopyPaths\\Icon=explorer.exe,0
REGI $HKCR\*\shell\CopyPaths\Command\\=%commandline%
REGI $HKCR\Directory\shell\CopyPaths\\=复制路径(多行)
REGI $HKCR\Directory\shell\CopyPaths\\Icon=explorer.exe,0
REGI $HKCR\Directory\shell\CopyPaths\command\\=%commandline%
//结束进程
set commandline="%MyName%" team set^ EnviMode=1| set^ ForceLocal=1| find --pid*@ a,| set b=%%1| lpos* * * ,*c=b,,a| ifex $%%%%c%%%%>0, forx *v c,d, team~ read -*,%%%%d%%%%,e,a~ mstr* * f=<1>e~ kill *force *%%%%f%%%%
REGI $HKCR\*\shell\KillApps\\=结束进程(多个)
REGI $HKCR\*\shell\KillApps\\Icon=taskmgr.exe,0
REGI $HKCR\*\shell\KillApps\Command\\=%commandline%
//关闭所在目录
set commandline="%MyName%" team set^ EnviMode=1| set^ ForceLocal=1| set$ nl=0d 0a| fdir --full a="%%1"| mstr * -delims:\ b=<-1>a| find --class:CabinetWClass --wid@ c,%%%%b%%%%| find --class:CabinetWClass --wid@ d,%%%%a%%%%| set< c=%%%%nl%%%%%%%%d%%%%| forx *nl c,e, team~ mstr* * f=<2>e~ ifex $%%%%f%%%%>0, set @@postmsg=%%%%f%%%%;0x0010;0;0
REGI $HKCR\*\shell\CloseWindow\\=关闭所在目录(多个)
REGI $HKCR\*\shell\CloseWindow\\Icon=taskmgr.exe,0
REGI $HKCR\*\shell\CloseWindow\Command\\=%commandline%
REGI $HKCR\Directory\shell\CloseWindow\\=关闭所在目录(多个)
REGI $HKCR\Directory\shell\CloseWindow\\Icon=taskmgr.exe,0
REGI $HKCR\Directory\shell\CloseWindow\command\\=%commandline%
//打开后关闭所在目录
set commandline="%MyName%" team set^ EnviMode=1| set^ ForceLocal=1| set$ nl=0d 0a| exec $"%%1"| fdir --full a="%%1"| mstr * -delims:\ b=<-1>a| find --class:CabinetWClass --wid@ c,%%%%b%%%%| find --class:CabinetWClass --wid@ d,%%%%a%%%%| set< c=%%%%nl%%%%%%%%d%%%%| forx *nl c,e, team~ mstr* * f=<2>e~ ifex $%%%%f%%%%>0, set @@postmsg=%%%%f%%%%;0x0010;0;0
REGI $HKCR\*\shell\RunCloseWindow\\=打开后关闭所在目录(多个)
REGI $HKCR\*\shell\RunCloseWindow\\Icon=taskmgr.exe,0
REGI $HKCR\*\shell\RunCloseWindow\Command\\=%commandline%
REGI $HKCR\Directory\shell\RunCloseWindow\\=打开后关闭所在目录(多个)
REGI $HKCR\Directory\shell\RunCloseWindow\\Icon=taskmgr.exe,0
REGI $HKCR\Directory\shell\RunCloseWindow\command\\=%commandline%
|
|