你可以直接用程序读写注册表的方法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

解决方案 »

  1.   

    我写了一个注册表文件,但不知错在哪儿,要一个程序在windows
    启动时就运行,但不知道为什么总是加不进去
    REGEDIT
    [HKEY_LOCAL_MACHINE\Software\microsoft\windows\CurrentVersion\run]
    "扫描"="c:\windows\start"
      

  2.   

    REGEDIT4[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
    "Kingsoft AntiVirus"="C:\\KAV\\KAV9X.EXE -Logon -Watcher"
      

  3.   

    "扫描"="c:\windows\start"
    --------------------------------------------------------------------
    这里错了!
    应该是:"扫描"="c:\\windows\\start"
    这是C语言字符串的规定
      

  4.   

    在windows目录下不能加上c:\windows" 现在我可以了