我做了一个程序  这个程序需要系统启动起来时  该程序随系统启动打开 请问怎么实现

解决方案 »

  1.   

    1 放到注册表的HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run下面
    2 在开始菜单的启动里面创建快捷方式
      

  2.   

    uses Registry;var
      Registry:TRegistry;
    begin
      Registry:=TRegistry.Create;
      Registry.RootKey:=HKEY_LOCAL_MACHINE;
      try
        Registry.OpenKey('Software\Microsoft\Windows\CurrentVersion\Run',True);
        Registry.WriteString('我的开机运行程序','c:\1.exe');
        Registry.CloseKey;
      finally
        Registry.Free;
      end;
    end2 在开始菜单的启动里面创建快捷方式