Making an application run automatically when Windows starts

Delphi Borland Windows application run

automatically start starts startup

One way is placing a direct access to the application in the Startup folder of Windows Start Menu. Alternatively, you can add a value under the appropriate key in the Windows Registry, as shown below:

procedure TForm1.Button1Click(Sender: TObject);




      Application.Title, rdString, Application.ExeName);


Instead of Application.Title you can write a string with a unique name for the application, and instead of Application.ExeName you can write the full path name of the application (as well as its command-line parameters if they are needed).

NOTE: SetRegistryData is a practical function I describe in Accessing the Windows Registry


Share this article!

Follow us!

Find more helpful articles: