无忧启动论坛

标题: PE中鼠标右键如何添加FastCopy? [打印本页]

作者: dogduxin    时间: 2022-10-23 01:23
标题: PE中鼠标右键如何添加FastCopy?
PE中鼠标右键如何添加FastCopy,关机,重启?
作者: 无垠    时间: 2022-10-23 06:17
本帖最后由 无垠 于 2022-10-23 08:42 编辑

看我的10PE网络版(内置谷歌浏览器)10PE1018X.7Z(309M),单独添加的注册表项。


[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\FastCopy]
@="{72FF462B-AB7D-427A-A268-E22E414933D7}"
"FastCopyMenuFlags2"=dword:fff10fff

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shellex\DragDropHandlers\FastCopy]
@="{72FF462B-AB7D-427A-A268-E22E414933D7}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{72FF462B-AB7D-427A-A268-E22E414933D7}\InProcServer32]
@="X:\\Program Files\\FastCopy\\FastEx64.dll"
"ThreadingModel"="Apartment"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shellex\ContextMenuHandlers\FastCopy]
@="{72FF462B-AB7D-427A-A268-E22E414933D7}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shellex\ContextMenuHandlers\FastCopy]
@="{72FF462B-AB7D-427A-A268-E22E414933D7}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shellex\DragDropHandlers\FastCopy]
@="{72FF462B-AB7D-427A-A268-E22E414933D7}"


[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shellex\ContextMenuHandlers\FastCopy]
@="{72FF462B-AB7D-427A-A268-E22E414933D7}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shellex\DragDropHandlers\FastCopy]
@="{72FF462B-AB7D-427A-A268-E22E414933D7}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shellex\ContextMenuHandlers\FastCopy]
@="{72FF462B-AB7D-427A-A268-E22E414933D7}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shellex\DragDropHandlers\FastCopy]
@="{72FF462B-AB7D-427A-A268-E22E414933D7}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut\ShellEx\ContextMenuHandlers\FastCopy]
@="{72FF462B-AB7D-427A-A268-E22E414933D7}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\lnkfile\shellex\ContextMenuHandlers\FastCopy]
@="{72FF462B-AB7D-427A-A268-E22E414933D7}"


注意路径

sshot-1.png (7.55 KB, 下载次数: 119)

sshot-1.png

作者: 无垠    时间: 2022-10-23 07:58
本帖最后由 无垠 于 2022-10-23 08:42 编辑

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\shutdown]
@="关机"
"Icon"="shell32.dll,27"
"Position"="bottom"
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\shutdown\command]
@="pecmd shut"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\shutdown]
@="关机"
"Icon"="shell32.dll,27"
"Position"="bottom"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\shutdown\command]
@="pecmd shut"
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\restart]
@="重启"
"Icon"="shell32.dll,146"
"Position"="bottom"
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\restart\command]
@="pecmd shut -r"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\restart]
@="重启"
"Icon"="shell32.dll,146"
"Position"="bottom"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\restart\command]
@="pecmd shut -r"

sshot-2.png (7.77 KB, 下载次数: 106)

sshot-2.png

作者: D_M_GuYing    时间: 2022-10-23 08:31
本帖最后由 D_M_GuYing 于 2022-10-23 08:52 编辑

把代码存为.cmd,,放在和FastCopy.exe同级的目录下,执行

@echo off
pushd "%CD%"
CD /D "%~dp0"
SET CurDir=%CD%
SET iconname=%CurDir%\FastCopy.exe
SET FastCopy_exe=%CurDir%\FastCopy.exe

::添加文件夹右键
reg add "HKCR\Directory\shell\FastCopy" /f /ve /t REG_SZ /d "FastCopy"
reg add "HKCR\Directory\shell\FastCopy" /f /v "icon" /t REG_SZ /d "\"%iconname%\""
REG ADD HKCR\Directory\shell\FastCopy\command /ve   /d  "%FastCopy_exe% \"%%L\" %%*"  /f

::添加分区右键
reg add "HKCR\Drive\shell\FastCopy" /f /ve /t REG_SZ /d "FastCopy"
reg add "HKCR\Drive\shell\FastCopy" /f /v "icon" /t REG_SZ /d "\"%iconname%\""
REG ADD HKCR\Drive\shell\FastCopy\command /ve   /d  "%FastCopy_exe% \"%%L\" %%*"  /f






sshot-2.jpg (13.8 KB, 下载次数: 149)

sshot-2.jpg

作者: D_M_GuYing    时间: 2022-10-23 08:49
存为.cmd

@echo off
::关机或重启
reg add "HKCR\DesktopBackground\Shell\Restart" /f /ve /t REG_SZ /d "重启"
reg add "HKCR\DesktopBackground\Shell\Restart" /f /v "Icon" /t REG_SZ /d "shell32.dll,46"
reg add "HKCR\DesktopBackground\Shell\Restart" /f /v "Position" /t REG_SZ /d "Bottom"
reg add "HKCR\DesktopBackground\Shell\Restart\command" /f /ve /t REG_SZ /d "Shutdown -r -f -t 00"
reg add "HKCR\DesktopBackground\Shell\Shutdown" /f /ve /t REG_SZ /d "关闭"
reg add "HKCR\DesktopBackground\Shell\Shutdown" /f /v "Icon" /t REG_SZ /d "shell32.dll,27"
reg add "HKCR\DesktopBackground\Shell\Shutdown" /f /v "Position" /t REG_SZ /d "Bottom"
reg add "HKCR\DesktopBackground\Shell\Shutdown\command" /f /ve /t REG_SZ /d "Shutdown -s -f -t 00"
exit


作者: HB天意    时间: 2022-10-23 11:13
fastcopy不用这么麻烦。一句即可:
rem 关联fastcopy右键
regsvr32 /s "%TP%\文件工具\Fastext1.dll"
作者: cph    时间: 2022-10-23 20:08
好帖
作者: anythingsky    时间: 2022-10-23 20:54
高人太多了

作者: kevon2021    时间: 2022-10-24 09:04
无垠 发表于 2022-10-23 06:17
看我的10PE网络版(内置谷歌浏览器)10PE1018X.7Z(309M),单独添加的注册表项。

哇塞,太厉害了
作者: D_M_GuYing    时间: 2022-10-24 11:09
HB天意 发表于 2022-10-23 11:13
fastcopy不用这么麻烦。一句即可:
rem 关联fastcopy右键
regsvr32 /s "%TP%\文件工具\Fastext1.dll"

这个好
不过单文件版本,就要先解压了
作者: hackerxmls    时间: 2023-1-22 17:32
感谢分享
作者: microlaf    时间: 2023-1-24 13:50
HB天意 发表于 2022-10-23 11:13
fastcopy不用这么麻烦。一句即可:
rem 关联fastcopy右键
regsvr32 /s "%TP%\文件工具\Fastext1.dll"

pecmd下call $fastext1.dll就行了

只这样,右键菜单出现上下并列的“复制”、“删除”菜单。
要想像K大PE里那样,还要加个键值

//Fastcopy 右键菜单折叠
REGI  #HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\FastCopy\\FastCopyMenuFlags2=0xfff13fff




欢迎光临 无忧启动论坛 (http://bbs.c3.wuyou.net/) Powered by Discuz! X3.3