vbs实现右键菜单中添加CMD HERE
发布时间:2016-12-28 来源:查字典编辑
摘要:右键菜单中添加CMDHERE复制代码代码如下:SetWshShell=CreateObject("Wscript.Shell")WshShe...
右键菜单中添加CMDHERE
复制代码 代码如下:
SetWshShell=CreateObject("Wscript.Shell")
WshShell.RegWrite"HKEY_LOCAL_MACHINESoftwareCLASSESFoldershellcmdhere",""
WshShell.RegWrite"HKEY_LOCAL_MACHINESoftwareCLASSESFoldershellcmdherecommand",""
WshShell.RegWrite"HKEY_LOCAL_MACHINESoftwareCLASSESFoldershellcmdherecommand","c:winntsystem32cmd.exe/KCD%1","REG_SZ"
wscript.echo"操作成功"
setWshShell=nothing