How to start a process at boot time without requiring login?

  • Thread starter Thread starter Podi
  • Start date Start date
P

Podi

Hi,

How can I start a process in system context at boot time without
requiring user login?

I added a registry in
HKLM\Software\Microsoft\Windows\CurrentVersion\Run\

StartInfo REG_SZ c:\Work\StartInfo.bat

StartInfo.bat is
dir > c:\Work\out.txt


I rebooted my XPe box, waited for 5 minutes, then logged in. The file
was created with timestamp near login, not when it finished rebooting.

Is there a way to achieve this?

Thanks in advance,
Podi
 
Hi Podi,

I think if you want something to start pre-login you need to turn it
into a service.

Why do you need to do this pre user login?

Glyn
 
Look up the runonce command in the TD/XPe help. There is flag that tells
it to runonce and leave it in the reg so that it always runs at boottime.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top