求用VBS实现修改以下注册表字符串的命令

来源:百度知道 编辑:UC知道 时间:2024/06/27 14:05:30
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\##10.69.112.126#guest-share]
"BaseClass"="Drive"
"_CommentFromDesktopINI"=""
"_LabelFromDesktopINI"="网络传稿"

代码如下,有问题hi我

Dim root
root="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\##10.69.112.126#guest-share\"
Set ws=WScript.CreateObject("WScript.Shell")
ws.RegWrite root+"BaseClass","Drive"
ws.RegWrite root+"_CommentFromDesktopINI",""
ws.RegWrite root+"_LabelFromDesktopINI","网络传稿"
MsgBox "修改成功!"