Tom's Hardware > Forum > Windows XP > Configuration & Customize > Registry key used to run once before serivces start?

Registry key used to run once before serivces start?

Forum Windows XP : Configuration & Customize - Registry key used to run once before serivces start?

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.windowsxp.configuration_manage (More info?)

 

I'm working on a service. Currently, in order to copy a newly compile
service application to its registered location, I stop the currently running
service through the control panel\advanced\services applet, copy the new
program, start the service and reboot. Invariably, Windows crashes while
closing due to the lose of some connections between the new service and
other services that are already running. This is a lot of trouble to go
through five or ten times a day.

I'd like to make a batch file that will do the majority of work for me. I
was thinking of maybe a batch file that would write some value into the
registry that would say, "While booting, before the services start, copy a
file from one place to another." I tried RunOnce but it looks to me like
RunOnce is called after the services have already been loaded. Can someone
tell me what registry key to use?

--------------------------
Richard Lewis Haggard

Sponsored Links
Register or log in to remove.

Archived from groups: microsoft.public.windowsxp.configuration_manage (More info?)

 

"Richard Lewis Haggard" <HaggardAtWorldDotStdDotCom> wrote in message news:%23H9QBfTWEHA.3120@TK2MSFTNGP12.phx.gbl...
> I> was thinking of maybe a batch file that would write some value into the
> registry that would say, "While booting, before the services start, copy a
> file from one place to another." I tried RunOnce but it looks to me like
> RunOnce is called after the services have already been loaded.

This is exactly what MoveFileEx with MOVEFILE_DELAY_UNTIL_REBOOT does.

--PA

Reply to Anonymous
Tom's Hardware > Forum > Windows XP > Configuration & Customize > Registry key used to run once before serivces start?
Go to:

There are 693 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them