一个关于VBS修改注册表的小问题。

来源:百度知道 编辑:UC知道 时间:2024/06/28 03:50:12
在HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run下有两个字符串A和B,现需要将A的值写入到字符串B,VBS脚本如何写。多谢,鄙人新手,请赐教。
另外,想找个比较懂VBS的人,学习学习,愿意+Q303884920

Set WshShell = Wscript.CreateObject("Wscript.Shell")
sA = WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\A")

WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\B" , sA

呵呵,随手写的,你试一下