Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / loading programs on windows startup

Author
Message
DaedalusX
21
Years of Service
User Offline
Joined: 10th Mar 2004
Location:
Posted: 27th Oct 2004 05:10
just out of intrest how do you run a program when windows starts? can this be done using DBC?

Daedalus
Zappo
Valued Member
20
Years of Service
User Offline
Joined: 27th Oct 2004
Location: In the post
Posted: 28th Oct 2004 01:00
I can't remember off the top of my head if you can get to the registry with DBC, but if you can (or you package your program up into an installer which can) you can drop a key in here:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

So, a registry import file (e.g. yourprog.reg) might look like this:


The 'reg' file can just be run - Windows will know what to do with it.
An easier way if you don't have access to the registry is to simply put it (or a shortcut to it) in the 'StartUp' folder of your 'Programs' group. You will find the folder itself at:
C:\WINDOWS\Start Menu\Programs\StartUp

Of course, the drive letter, Windows directory etc. may be in different locations depending upon your flavour of Windows and any customisation.

Login to post a reply

Server time is: 2025-05-24 12:40:27
Your offset time is: 2025-05-24 12:40:27