你可以直接用程序读写注册表的方法VB操作注册表:
http://www.sqreg.com/file/vb/reg_01.htm
http://www.sqreg.com/file/vb/reg_02.htm
http://www.sqreg.com/file/vb/reg_03.htm
http://www.sqreg.com/file/vb/reg_04.htm
http://www.sqreg.com/file/vb/reg_05.htm
http://www.sqreg.com/file/vb/reg_06.htm
http://www.sqreg.com/file/vb/reg_07.htm
http://www.sqreg.com/file/vb/reg_01.htm
http://www.sqreg.com/file/vb/reg_02.htm
http://www.sqreg.com/file/vb/reg_03.htm
http://www.sqreg.com/file/vb/reg_04.htm
http://www.sqreg.com/file/vb/reg_05.htm
http://www.sqreg.com/file/vb/reg_06.htm
http://www.sqreg.com/file/vb/reg_07.htm
启动时就运行,但不知道为什么总是加不进去
REGEDIT
[HKEY_LOCAL_MACHINE\Software\microsoft\windows\CurrentVersion\run]
"扫描"="c:\windows\start"
"Kingsoft AntiVirus"="C:\\KAV\\KAV9X.EXE -Logon -Watcher"
--------------------------------------------------------------------
这里错了!
应该是:"扫描"="c:\\windows\\start"
这是C语言字符串的规定