vbs实现右键菜单中添加CMD HERE
程序员文章站
2022-06-23 21:19:04
右键菜单中添加cmd here 复制代码 代码如下:set wshshell=createobject("wscript.shell") w...
右键菜单中添加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
复制代码 代码如下:
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
上一篇: 浏览器自动播放 音乐