Iniciar aplicativo com o windows
Dae pessoal...
Estou tentando fazer com q meu aplicativo se inicie junto com o windows mais naum sei nem por onde começar...
Alguem sabe como fazer???
T+
Estou tentando fazer com q meu aplicativo se inicie junto com o windows mais naum sei nem por onde começar...
Alguem sabe como fazer???
T+
Eduardo.buffara
Curtidas 0
Respostas
Rjun
20/01/2005
Crie uma chave com o nome e caminho do seu aplicativo e coloque na seção na chave RUN.
GOSTEI 0
Eduardo.buffara
20/01/2005
vlw vou testar...
GOSTEI 0
Pistesil
20/01/2005
Uses Windows, Messages .... Registry; // Não esqueça de adicionar a Unit Registry na sessão uses... procedure button1.click(sender: Tobject); var Reg: Tregistry; begin Reg:=Tregistry.create; with Reg do begin rootkey:=HKEY_LOCAL_MACHINE; Openkey(´\MICROSOFT\WINDOWS\CURRENTVERSION\RUN´,false); writestring(´MeuPrograma´, pchar(application.exename)); closekey; end; end;
GOSTEI 0