首页 > Web开发 > 详细

vbs实现右键菜单中添加CMD HERE

时间:2016-01-20 22:46:11      阅读:169      评论:0      收藏:0      [点我收藏+]
右键菜单中添加CMD HERE
复制代码 代码如下:

Set WshShell=CreateObject("Wscript.Shell") 
WshShell.RegWrite "HKEY_LOCAL_MACHINE\Software\CLASSES\Folder\shell\cmd here\","" 
WshShell.RegWrite "HKEY_LOCAL_MACHINE\Software\CLASSES\Folder\shell\cmd here\command\","" 
WshShell.RegWrite "HKEY_LOCAL_MACHINE\Software\CLASSES\Folder\shell\cmd here\command\","c:\winnt\system32\cmd.exe /K CD %1","REG_SZ" 
wscript.echo "操作成功" 
set WshShell=nothing 

vbs实现右键菜单中添加CMD HERE

原文:http://www.jb51.net/article/14500.htm

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!