页面导航: 首页脚本专栏vbs → 正文内容 vbs CMD HERE

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

发布:dxy 字体:[增加 减小] 类型:转载
用vbs实现的右键菜单中,在当前目录中打开cmd窗口
右键菜单中添加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
Tags:vbs CMD HERE
浏览次数:载入中... 打印本文关闭本文返回首页

文章评论

共有 位脚本之家网友发表了评论我来说两句

同 类 文 章
最 近 更 新
热 点 排 行