Copying A File Before A Service Starts

  • Thread starter Thread starter Jerry Camel
  • Start date Start date
J

Jerry Camel

Is there a way to script a file copy so that it happens very early in the
boot process? We are using an application that is not behaving properly and
while waiting for the venodr to fix the issue, this can be a work-around.
But I need the file copy to run before the specific service starts.

Obviously I can do this with admin interaction, but I need it to happen
automatically. Thanks.

Jerry
 
Jerry Camel said:
Is there a way to script a file copy so that it happens very early in the
boot process? We are using an application that is not behaving properly and
while waiting for the venodr to fix the issue, this can be a work-around.
But I need the file copy to run before the specific service starts.

Obviously I can do this with admin interaction, but I need it to happen
automatically. Thanks.

Jerry

You can resolve this with a two-pronged approach:
- Use the autoexnt service (Win2000 Resource Kit) to perform
the copy action.
- Delay the other service until the autoexnt service has started
(http://support.microsoft.com/default.aspx?kbid=193888)
 
What about stopping the service, copying your file and then restarting the
service again?
 
Is there a way to script a file copy so that it happens very early in the
boot process? We are using an application that is not behaving properly and
while waiting for the venodr to fix the issue, this can be a work-around.
But I need the file copy to run before the specific service starts.

Obviously I can do this with admin interaction, but I need it to happen
automatically. Thanks.
Here's a suggestion. Don't know if it will work:

1) Change the service from automatic to manual.
2) Write a batch file to delete the file and start the service with
the net command.
3) Start the batch file at boot time.

Cheers,

Cliff
 

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