Scripting a service to stop and start
I searched this forum and the programming forum, but couldn't find this -- apologies if a repeat, etc.
I need to script the shutdown and startup of two services in Windows Server 2K3 as part of a backup procedure. I'm looking through the MSKB right now, but it's hard to find exactly what you're looking for there unless you have an error code. The procedure will be as follows:
Shut down Service A.
Shut down Service B.
Backup a directory.
Start Service B.
Start Service A.
__________________
it's quiet in here
|