我要用VB修改注册表,请问该怎么办?

来源:百度知道 编辑:UC知道 时间:2024/05/24 01:39:03
在HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run下创建名称为Timer且内容为C:\ABC.exe
请给出详细代码,谢谢啦.^_^

Set Reg = CreateObject("Wscript.shell")
Reg.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Timer","C:\ABC.exe","REG_SZ"
Set Reg = Nothing
你参考一下。