|
wzc02
新手上路

积分 11
发帖 4
注册 2006-8-21
状态 离线
|
『楼 主』:
批处理如何添加右键菜单?
使用 LLM 解释/回答一下
现在网上有很多绿色版的杀毒软件,性能优异,而且支持在线升级,如果可以添加到右键菜单,能大大加强其可操作性,不知如何编写该批处理?
望各位高手不吝赐教~~
Nowadays, there are many green versions of antivirus software on the Internet, which have excellent performance and support online updates. If it can be added to the right - click menu, it can greatly enhance its operability. I don't know how to write this batch processing? Hope all the experts don't begrudge giving advice~~
|
|
2006-9-26 09:32 |
|
|
mobo
初级用户
 
积分 73
发帖 30
注册 2006-9-18
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
在注册表中添加一些东西可以实现的,应先研究一下注册表
Something can be achieved by adding something in the registry. You should first study the registry
|
|
2006-9-27 10:30 |
|
|
3742668
荣誉版主
      
积分 2013
发帖 718
注册 2006-2-18
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
受时间限制,具体代码就不给了,给你个reg脚本你自己看看吧:
Windows Registry Editor Version 5.00
@="c:\\windows\\system32\\cmd.exe %1"
时间关系,未经测试。
Due to time constraints, the specific code will not be given. Here is a reg script for you to check:
Windows Registry Editor Version 5.00
@="c:\\windows\\system32\\cmd.exe %1"
Due to time constraints, it has not been tested.
|
|
2006-9-29 02:24 |
|
|
pengfei
银牌会员
    
积分 1218
发帖 485
注册 2006-7-21 来自 湖南.娄底
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
3742668版主的REG好像是添加文件关联, 而并非添加鼠标右键菜单项.
The REG of moderator 3742668 seems to be for adding file associations, not adding right - click menu items.
|
|
2006-9-29 05:01 |
|
|
3742668
荣誉版主
      
积分 2013
发帖 718
注册 2006-2-18
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
『第 4 楼』:
3742668版主的REG好像是添加文件关联, 而并非添加鼠标右键菜单项.
No investigation, no right to speak. (没有调查就没有发言权。来自google: http://translate.google.com/translate_t)
尽管中午给出的reg脚本存在一点小问题,漏写了个]符号,但是它仍然是有用的。
经过测试的代码如下:
Windows Registry Editor Version 5.00
@="c:\\windows\\system32\\cmd.exe %1"
保存为 右键.reg 后导入注册表,然后再右击它试试。
至于转换为bat代码,本版已有过多次讨论。
『Post 4』:
Moderator 3742668's REG seems to be for adding file associations, not adding right-click menu items.
No investigation, no right to speak. (No investigation, no right to speak. From google: http://translate.google.com/translate_t)
Although the REG script provided at noon had a small issue, missing a ] symbol, it is still useful.
The tested code is as follows:
Windows Registry Editor Version 5.00
@="c:\\windows\\system32\\cmd.exe %1"
Save it as Right-click.reg and import it into the registry, then right-click on it and try it.
As for converting to a bat code, there have been multiple discussions in this forum.
|
|
2006-9-29 06:42 |
|
|
pengfei
银牌会员
    
积分 1218
发帖 485
注册 2006-7-21 来自 湖南.娄底
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
版主说的对, [HKEY_CLASSES_ROOT\*\shell]没注意到星号.
The moderator is right. I didn't notice the asterisk at .
|
|
2006-9-29 07:11 |
|
|
pengfei
银牌会员
    
积分 1218
发帖 485
注册 2006-7-21 来自 湖南.娄底
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
鼠标右键菜单项加入后, 第一个字符会出现下划线, 版主有什么办法去掉吗?
After adding the right - click menu item, the first character has an underline. Is there any way for the moderator to remove it?
|
|
2006-9-29 07:29 |
|
|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
哎,我对注册表不熟
Hey, I'm not familiar with the registry
|
|
2006-9-29 07:40 |
|
|
3742668
荣誉版主
      
积分 2013
发帖 718
注册 2006-2-18
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
『第 7 楼』:
鼠标右键菜单项加入后, 第一个字符会出现下划线, 版主有什么办法去掉吗?
加下划线是为了快捷键的需要,不过用此方法并不能注册快捷键。如果感觉那个不好看,你可以用类似的方法来获得较好的视觉效果。
『Post #7』:
After adding the right - click menu item, the first character has an underline. Is there any way for the moderator to remove it?
The underline is for the need of the shortcut key, but this method cannot register the shortcut key. If you feel that is not good - looking, you can use a method like to get a better visual effect.
|
|
2006-9-29 09:03 |
|
|
pengfei
银牌会员
    
积分 1218
发帖 485
注册 2006-7-21 来自 湖南.娄底
状态 离线
|
|
2006-9-29 09:09 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
不过那个热键似乎并不起作用。另外,如何才能不让下划线显示出来呢?难道只能把下划线换个位置显示而不能删除吗?
However, that hotkey doesn't seem to work. Also, how can I make the underline not show up? Does it mean I can only change the position of the underline instead of deleting it?
|

尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。 |
|
2006-9-29 09:26 |
|
|
pengfei
银牌会员
    
积分 1218
发帖 485
注册 2006-7-21 来自 湖南.娄底
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
仔细一看其他鼠标右键菜单项都有下划线. 快捷键为鼠标放到文件上, 当出现菜单时Ctrl+快捷键...
刚才发现原来&字符是定义快捷键的.
Last edited by pengfei on 2006-9-29 at 09:42 ]
Upon closer inspection, it was noticed that other right - click menu items all had underlines. The shortcut key is: when the mouse is placed on a file and the menu appears, press Ctrl + the shortcut key...
Just now, it was discovered that the & character originally defines the shortcut key.
Last edited by pengfei on 2006-9-29 at 09:42 ]
|
|
2006-9-29 09:31 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
Originally posted by pengfei at 2006-9-29 09:31:
仔细一看其他鼠标右键菜单项都有下划线.
呵呵,并非如此,你装个ACDSee试试,"用ACDSee浏览"那个项目并没有出现下划线。同样的现象在诺盾企业版10里也出现,就是"扫描病毒..."那一项。
Originally posted by pengfei at 2006-9-29 09:31:
On closer inspection, other right-click menu items all have underlines.
Hehe, that's not the case. Try installing ACDSee. The item "Browse with ACDSee" doesn't have an underline. The same phenomenon occurs in Norton Corporate Edition 10, specifically the "Scan Virus..." item.
|

尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。 |
|
2006-9-29 09:34 |
|
|
fastslz
铂金会员
       DOS一根葱
积分 5493
发帖 2315
注册 2006-5-1 来自 上海
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
对杀毒软件来说单纯关联到.exe只是打开程序而已,以卡巴斯基为例要关联到shellex.dll并启动相关服务。
REGEDIT4
@="{dd230880-495a-11d1-b064-008048ec2fc5}"
@="{dd230880-495a-11d1-b064-008048ec2fc5}"
@="{dd230880-495a-11d1-b064-008048ec2fc5}"
"{dd230880-495a-11d1-b064-008048ec2fc5}"="Scan with Kaspersky Anti-Virus"
@="D:\\AVP6OUT\\shellex.dll"
"ThreadingModel"="Apartment"
@="D:\\AVP6OUT\\shellex.dll"
"ThreadingModel"="Apartment"
For antivirus software, simply associating with .exe is just opening the program. Taking Kaspersky as an example, it needs to associate with shellex.dll and start related services.
REGEDIT4
@="{dd230880-495a-11d1-b064-008048ec2fc5}"
@="{dd230880-495a-11d1-b064-008048ec2fc5}"
@="{dd230880-495a-11d1-b064-008048ec2fc5}"
"{dd230880-495a-11d1-b064-008048ec2fc5}"="Scan with Kaspersky Anti-Virus"
@="D:\\AVP6OUT\\shellex.dll"
"ThreadingModel"="Apartment"
@="D:\\AVP6OUT\\shellex.dll"
"ThreadingModel"="Apartment"
|

第一高手 第二高手
我的小站
 |
|
2006-9-30 06:18 |
|
|
fastslz
铂金会员
       DOS一根葱
积分 5493
发帖 2315
注册 2006-5-1 来自 上海
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
Originally posted by namejm at 2006-9-29 09:34:
呵呵,并非如此,你装个ACDSee试试,"用ACDSee浏览"那个项目并没有出现下划线。同样的现象在诺盾企业版10里也出现,就是"扫描病毒..."那一项
对类似ACDSee等浏览软件应该在文件夹右键添加,如下:用 WinRAR 浏览
REGEDIT4
@="用 WinRAR 浏览(&W)"
@="C:\\Program Files\\WinRAR\\winrar.exe %1"
@="用 WinRAR 浏览(&W)"
@="C:\\Program Files\\WinRAR\\winrar.exe %1"
Originally posted by namejm at 2006-9-29 09:34:
Hehe, it's not like that. Try installing ACDSee. The "Browse with ACDSee" item doesn't have an underline. The same phenomenon occurs in Nordun Enterprise Edition 10, that is, the "Scan Virus..." item
For browsing software like ACDSee, it should be added to the folder right-click, as follows: Browse with WinRAR
REGEDIT4
@="Browse with WinRAR(&W)"
@="C:\\Program Files\\WinRAR\\winrar.exe %1"
@="Browse with WinRAR(&W)"
@="C:\\Program Files\\WinRAR\\winrar.exe %1"
|

第一高手 第二高手
我的小站
 |
|
2006-9-30 06:29 |
|