vbs CMD HERE vbs实现右键菜单中添加CMD HERE
人气:0想了解vbs实现右键菜单中添加CMD HERE的相关内容吗,在本文为您仔细讲解vbs CMD HERE的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点: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
加载全部内容