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 / Causing an EXE to start upon windows starting

Author
Message
Soroki
19
Years of Service
User Offline
Joined: 26th Jan 2006
Location: United States
Posted: 30th Dec 2007 03:34
I have need of some sort of way to have a DBC executable start as soon as Windows(XP) loads. Basically, if the PC is shut down and turned back on, have the program immediately begin upon loading. My friend suggested that I put in the system32 start folder but that's not going to work in some cases. I am no pro at DLLs, and I think one may have to delve into DLLs to do what I am after. Any suggestions?

If you whine about graphics, you are not a true gamer, you are just an imposter to a title you can't understand.
TrueDB
17
Years of Service
User Offline
Joined: 13th Nov 2007
Location:
Posted: 30th Dec 2007 03:41
Soroki try putting it in : Startup on you programs menu.

EG Press Start/Programs/StartUp and add your program

MAIN PROGRAM http://www.thewargamer.com/grognard/avalompro.zip GAME MODULES http://www.thewargamer.com/grognard/avittybitty.zip http://www.thewargamer.com/grognard/avalamo.zip
Soroki
19
Years of Service
User Offline
Joined: 26th Jan 2006
Location: United States
Posted: 30th Dec 2007 03:52
No, that won't work. I need it to basically act as a startup program but not actually BE one. The exe somehow is auto-executed through some means. Maybe a batch file will work but that is another thing. Let's not limit this to DBC then. Maybe I should post this over in programming chat instead. Yeah if a mod can move this or something...

If you whine about graphics, you are not a true gamer, you are just an imposter to a title you can't understand.
TrueDB
17
Years of Service
User Offline
Joined: 13th Nov 2007
Location:
Posted: 30th Dec 2007 06:09
try typing "msconfig" in the run command!

EG: Start\Run\msconfig

MAIN PROGRAM http://www.thewargamer.com/grognard/avalompro.zip GAME MODULES http://www.thewargamer.com/grognard/avittybitty.zip http://www.thewargamer.com/grognard/avalamo.zip
tha_rami
19
Years of Service
User Offline
Joined: 25th Mar 2006
Location: Netherlands
Posted: 30th Dec 2007 06:31
You can do that through the registry? Most big apps do that.


A mod has been erased by your signature because it was larger than 600x120
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 1st Jan 2008 21:47
As tha_rami said, major programs put files in the msconfig. It basically allows you to stop some programs on your computer to open up when you start. I'm not sure how to put custom applications in there, but you can try!

Seriously, how do you make the little blue text come up below your message?
Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 2nd Jan 2008 19:31 Edited at: 2nd Jan 2008 19:31
write to registry Folder Name, Key Name, Value
will write a regestry key, you just have to find out witch one to write

jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 4th Jan 2008 20:33
AUTOEXEC.BAT File... Just put name of file in (full path) - that will run it. In Fact - OTher stuff will wait for it to finish I think.

Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 4th Jan 2008 23:08
there are 2 ways -
for vista : place a shortcut to the app in :

C:\Users\yourusername\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

OR manually write to the registry using regedit (CAUTION - its real-time editing - dont hit the delete key on accident! )

HKLM - software - microsoft - windows - current version - run

jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 5th Jan 2008 01:27
ahh...Vista - Rules Change... AutoExec.bat was on borrowed time in XP even

Login to post a reply

Server time is: 2025-06-05 19:06:05
Your offset time is: 2025-06-05 19:06:05