forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Run a program at boot

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Jul 23, 2002 3:12 pm    Post subject: Run a program at boot Reply with quote

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... Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Jul 23, 2002 3:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Tue Jul 23, 2002 3:28 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Jul 23, 2002 3:54 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
LinkSisco
Valued Newbie


Joined: 17 May 2002
Posts: 30
Location: UK

PostPosted: Fri Jul 26, 2002 7:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Fri Jul 26, 2002 7:58 pm    Post subject: Reply with quote

If you are using a WinNT based OS then you can use the program srvany.exe included in the WinNT and Win2K Resource Kits to run an app as an NT service.

Check out these articles for more info:
http://www.winntmag.com/Articles/Index.cfm?ArticleID=7959
http://www.winntmag.com/Articles/Index.cfm?ArticleID=8148
Back to top
View user's profile Send private message Send e-mail
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Jul 26, 2002 8:00 pm    Post subject: Reply with quote

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... Sad

If anyone knows of any other programs that can add/remove a service let me know. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Fri Jul 26, 2002 8:23 pm    Post subject: Reply with quote

You can download srvany.exe here: http://www.pyeung.com/userdefinedservice.html
Back to top
View user's profile Send private message Send e-mail
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Fri Jul 26, 2002 10:21 pm    Post subject: Reply with quote

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 Smile

_________________
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
View user's profile Send private message Send e-mail
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Jul 27, 2002 2:55 pm    Post subject: Reply with quote

Thanks Mac, I was forgotten that...
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Jul 27, 2002 3:48 pm    Post subject: Reply with quote

Many thanks for your replies... Smile

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
View user's profile Send private message Visit poster's website
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Jul 27, 2002 4:35 pm    Post subject: Reply with quote

I have no idea. I'm still in Windows95 land. Confused

I'd give 'em both a try though, providing Win2k
has a WIN.INI file...

Cheers, Mac Smile

_________________
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
View user's profile Send private message Send e-mail
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Jul 27, 2002 5:38 pm    Post subject: Run a program at boot Reply with quote

Thanks... Smile

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group