VB如何将程序写入启动项

解决方案 »

  1.   

           '随系统启动而运行
            
            Dim hKey As Long, SubKey As String, Exe As String        SubKey = "Software\Microsoft\Windows\CurrentVersion\Run"
            Exe = MyPath & "ComputerManul.exe" '要启动的程序
            RegCreateKey HKEY_CURRENT_USER, SubKey, hKey
        
            RegSetValueEx hKey, "计算机维护程序V1.1", 0, REG_SZ, ByVal Exe, _
                      LenB(StrConv(Exe, vbFromUnicode)) + 1
            RegCloseKey hKey
        
      

  2.   

    http://zhidao.baidu.com/question/9815175.html
    太多了,网上找