![]() |
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. |
net stop service a
net stop service b xcopy blah blah blah net start service b net start service a |
TFP needs an embarrassed smiley. Thanks. I'll go back in the corner now.
|
lol, nah its ok, we all forget the basics some time.
|
All times are GMT -8. The time now is 08:35 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project