06-26-2006, 06:41 AM | #1 (permalink) |
Muffled
Location: Camazotz
|
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 |
06-26-2006, 07:51 AM | #2 (permalink) |
Devils Cabana Boy
Location: Central Coast CA
|
net stop service a
net stop service b xcopy blah blah blah net start service b net start service a
__________________
Donate Blood! "Love is not finding the perfect person, but learning to see an imperfect person perfectly." -Sam Keen |
Tags |
scripting, service, start, stop |
|
|