找回密码
 加入
搜索
查看: 7303|回复: 13

[系统综合] 修改注册表 使桌面右键添加多级菜单……这个应该怎么做

 火.. [复制链接]
发表于 2012-1-15 09:39:22 | 显示全部楼层 |阅读模式
在网上淘的……
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\App Laucher]
"MUIVerb"="App Laucher"
"SubCommands"="Opera;Notepad;Looknstop;UTorrent;Internet explore"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Opera]
@="Opera"
 
"Icon"="C:\\Program Files (x86)\\Opera\\opera.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Opera\command]
@="C:\\Program Files (x86)\\Opera\\opera.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Notepad]
@="Notepad"
 
"Icon"="C:\\Program Files (x86)\\Notepad2.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Notepad\command]
@="C:\\Program Files (x86)\\Notepad2.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Looknstop]
@="Looknstop"
 
"Icon"="C:\\Program Files\\Soft4Ever\\looknstop\\looknstop.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Looknstop\command]
@="C:\\Program Files\\Soft4Ever\\looknstop\\looknstop.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\UTorrent]
@="UTorrent"
 
"Icon"="C:\\Program Files (x86)\\uTorrent\\uTorrent.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\UTorrent\command]
@="C:\\Program Files (x86)\\uTorrent\\uTorrent.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Internet explore]
 
@="Internet explore"
"Icon"="C:\\Program Files\\Internet Explorer\\iexplore.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Internet explore\command]
@="C:\\Program Files\\Internet Explorer\\iexplore.exe"

问题就是、我想在   App Laucher    下添加个二级菜单、比如 就叫做 “ Games” 、然后在 Games 菜单下 添加一些 启动程序 就像上面的 Opear uTorrent.exe一样&……请问该怎么写注册表呢???
发表于 2012-1-15 12:46:31 | 显示全部楼层
这个肯定得制作dll文件
发表于 2012-1-15 12:52:51 | 显示全部楼层
回复 2# afan
dll倒未必必须,不过注册表内部的层级好像挺麻烦的

lz,打开hkcr\*看看,照着写写试试
发表于 2012-1-15 13:03:19 | 显示全部楼层
回复  afan
dll倒未必必须,不过注册表内部的层级好像挺麻烦的

lz,打开hkcr\*看看,照着写写试试
netegg 发表于 2012-1-15 12:52



    如果不需要 dll 那可要好好学下了,不会做 dll 很多时候很无奈~
发表于 2012-1-15 13:06:29 | 显示全部楼层
回复 4# afan
其实如果做dll文件也是为了添加这些注册表,因为有的时候需要用到类注册以便直接关联到某个clsid(class id)
发表于 2012-1-15 13:09:17 | 显示全部楼层
回复  afan
其实如果做dll文件也是为了添加这些注册表,因为有的时候需要用到类注册以便直接关联到某个cl ...
netegg 发表于 2012-1-15 13:06



    添加注册表是为了好调用 dll 吧,我一直都是这么认为的。被你这么一说我迷失了…
发表于 2012-1-15 13:14:57 | 显示全部楼层
本帖最后由 netegg 于 2012-1-15 13:18 编辑

回复 6# afan
不一定,也可以直接执行命令,比如右键运行cmd,没有dll调用
[au3]
RegWrite("HKCR\Drive\shell\defrag", "", "REG_SZ", "碎片整理(&D)")
RegWrite("HKCR\Drive\shell\defrag\command", "", "REG_SZ", "defrag.exe %1")
[/au3]
发表于 2012-1-15 13:18:07 | 显示全部楼层
回复 7# netegg


    这个我知道,但是如果不是单纯的添加1项菜单,而是更多内容,如加多级子菜单、加图标、加图片等,应该是需要dll的。
发表于 2012-1-15 13:19:31 | 显示全部楼层
回复 8# afan
那要看项目具体情况了
发表于 2012-1-15 14:13:32 | 显示全部楼层
留个脚印,以后回来学习
 楼主| 发表于 2012-1-16 10:19:38 | 显示全部楼层
这个肯定得制作dll文件
afan 发表于 2012-1-15 12:46



    谢谢斑竹的解答…… 不会写Dll  只能这么凑活用了
 楼主| 发表于 2012-1-16 10:21:41 | 显示全部楼层
回复 3# netegg


    谢谢拉……就这样凑活用吧
发表于 2012-1-28 20:30:13 | 显示全部楼层
WIN7倒是可以直接修改注册表,XP记得要用DLL才行
发表于 2012-1-29 02:13:17 | 显示全部楼层
收藏先,等到公司上班了再研究
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-19 04:00 , Processed in 0.079440 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表