Executing an application automatically after O.S. initializes

Started by
3 comments, last by Daaark 18 years, 9 months ago
Hi, How should I proceed to execute my application automatically after initializing O.S.? Thanks in advance
Advertisement
Answer 1: You shouldn't. What if your application freezes and the user can't get to anything else? Why does it need to pop up into the user's face the minute they turn their computer on?

Answer 2: Depends on the OS. In Linux/Unix, you want to be looking at the init scripts under /etc/init.d/, /etc/rc.d/ or somewhere around there. In Windows, I believe c:\autoexec.bat still works, and does basically the same thing. In OSX, I don't know, but I do know it has it's own init-ish system you can tinker with.
-----http://alopex.liLet's Program: http://youtube.com/user/icefox192
Quote:Original post by Icefox
Answer 1: You shouldn't. What if your application freezes and the user can't get to anything else? Why does it need to pop up into the user's face the minute they turn their computer on?

Thanks for the answer.
I would like to use a computer in an "arcade machine" (sorry, I don't know the correct name in English - I mean machines like those from CAPCOM, SEGA etc). The computer would be used only for one application (just the O.S. and requirements for the application would be installed). So, if the application were well implemented, I believe that there would be little chance of freezing.
You could add it to the startup in the registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\Run
ex. - To add a file named C:\Folder\Start.exe and invoke it with c:\Folder\info.txt you would create a new string value, then modify it and write in C:\Folder\Start.exe C:\Folder\info.txt as the data value
Why not just add it to the startup folder? That's why it's there.

This topic is closed to new replies.

Advertisement