Running a program on startup

P

Pablo Ruano

Hello:

I've developed an application that listens in a port for backup purposes. I
want the application to run on the computer startup, even when there is no
user logged on.
I've read in the internet that I should create a new value in the regitry,
in HKLM\software\microsoft\windows\CurrentVersion\RunServices.
But I don't have such key in the registry. I only have Run and RunOnce. I've
tried placing the value in the Run key, but the application starts after
loggon.

Could someone tell me how to create the key RunServices, because I tried
just creating a ney key and renaming it, but it doesn't work, or any other
solution for my problem?

Thanks.
Pablo.
 
P

Pedro M. Leite

Good Afternoon.

search the web for " run as a service " not related to "runas"
can't remember the name for sure, but i beleive what you need is "srvany".

Good Luck
Pedro
-------------------------------------
On Wed, 14 Oct 2009 14:57:51 +0200, Pablo Ruano wrote:

> Hello:
>
> I've developed an application that listens in a port for backup
> purposes. I want the application to run on the computer startup, even
> when there is no user logged on.
> I've read in the internet that I should create a new value in the
> regitry, in HKLMsoftwaremicrosoftwindowsCurrentVersionRunServices.
> But I don't have such key in the registry. I only have Run and RunOnce.
> I've tried placing the value in the Run key, but the application starts
> after loggon.
>
> Could someone tell me how to create the key RunServices, because I tried
> just creating a ney key and renaming it, but it doesn't work, or any
> other solution for my problem?
>
> Thanks.
> Pablo.






--
No trees were destroyed in the sending of this message, however, a
significant number of electrons were terribly inconvenienced





--
No trees were destroyed in the sending of this message, however, a
significant number of electrons were terribly inconvenienced
 
P

Pegasus [MVP]

"Pablo Ruano" wrote in message
news:elj0%233MTKHA.4144@TK2MSFTNGP02.phx.gbl...
> Hello:
>
> I've developed an application that listens in a port for backup purposes.
> I want the application to run on the computer startup, even when there is
> no user logged on.
> I've read in the internet that I should create a new value in the regitry,
> in HKLMsoftwaremicrosoftwindowsCurrentVersionRunServices.
> But I don't have such key in the registry. I only have Run and RunOnce.
> I've tried placing the value in the Run key, but the application starts
> after loggon.
>
> Could someone tell me how to create the key RunServices, because I tried
> just creating a ney key and renaming it, but it doesn't work, or any other
> solution for my problem?
>
> Thanks.
> Pablo.


The easiest way is to start the application at boot time, using the Task
Manager. The not so easy way is with srvany.exe, as Pedro mentioned - see
here: http://support.microsoft.com/kb/137890.
 
Back
Top Bottom