| View previous topic :: View next topic |
| Author |
Message |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Jul 23, 2002 3:12 pm Post subject: Run a program at boot |
|
|
This is a question that has been hanging on to me ever since I started the project I am working on:
How can I start a program before someone logs on to windows, for example, how can I have a program running at the logon screen? If possible it would be good to do this without creating my own windows shell and everything...
Thanks for any help...  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Tue Jul 23, 2002 3:17 pm Post subject: |
|
|
You can do that by editting win.ini or system.ini (I don't know which) and change this:
shell=explorer.exe
to the name of your program...
Don't forget to, if you're program is shutted down and windows may be started, to change it back (otherwise explorer.exe will be run as the windows explorer) and run explorer.exe ... |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Tue Jul 23, 2002 3:28 pm Post subject: |
|
|
This should be possible by adding your program to the following key, although it will not work on NT/2000/XP OSes:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices
Tommy |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Jul 23, 2002 3:54 pm Post subject: |
|
|
Thanks for your replies...but I have a question: Is it possible to add a service in Win 2000/NT, I think it is because my virus scanner has a service... _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
LinkSisco Valued Newbie
Joined: 17 May 2002 Posts: 30 Location: UK
|
Posted: Fri Jul 26, 2002 7:16 pm Post subject: |
|
|
there is a program in windows that allows you to add and remove services, i cant quite remember where or what its called, but im sure if you ask around someone will...
sorry. |
|
| Back to top |
|
 |
Hortalonus Valued Contributor


Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Jul 26, 2002 8:00 pm Post subject: |
|
|
Yes, I have heard of a program called "servany.exe" from a Resource Kit from Microsoft, but I don't know where to download it...
If anyone knows of any other programs that can add/remove a service let me know.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Hortalonus Valued Contributor


Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Fri Jul 26, 2002 10:21 pm Post subject: |
|
|
In the WIN.INI file, you can use these keys
(I think "load=" may have higher priority):
load=???
or
run=???
under the [windows] section, where ??? is
the path\filename to your program (enclose
"path\filename" in quotes if you have long
file/dir names). The "shell=" key that skit
mentioned is in SYSTEM.INI under [boot].
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Jul 27, 2002 2:55 pm Post subject: |
|
|
| Thanks Mac, I was forgotten that... |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Jul 27, 2002 3:48 pm Post subject: |
|
|
Many thanks for your replies...
Mac -
Will this run the program even when a user is not logged on, for example on the Windows 2000 logon screen when the screen is prompting someone to enter their username and password? _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Jul 27, 2002 4:35 pm Post subject: |
|
|
I have no idea. I'm still in Windows95 land.
I'd give 'em both a try though, providing Win2k
has a WIN.INI file...
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Jul 27, 2002 5:38 pm Post subject: Run a program at boot |
|
|
Thanks...
By the way, my Windows XP Home computer has a win.ini, so I am assuming win2k will have a win.ini
Maybe I should try the servany.exe file someone else mentioned if that doesn't work...
Thanks again, _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
|