这篇文章主要介绍了vbs如何实现右键菜单中添加CMD HERE,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。
右键菜单中添加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”这篇文章对大家有帮助,同时也希望大家多多支持编程网,关注编程网行业资讯频道,更多相关知识等着你来学习!