Tilted Forum Project Discussion Community

Tilted Forum Project Discussion Community (https://thetfp.com/tfp/)
-   Tilted Technology (https://thetfp.com/tfp/tilted-technology/)
-   -   Scripting a service to stop and start (https://thetfp.com/tfp/tilted-technology/106047-scripting-service-stop-start.html)

Kadath 06-26-2006 06:41 AM

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.

Dilbert1234567 06-26-2006 07:51 AM

net stop service a
net stop service b
xcopy blah blah blah
net start service b
net start service a

Kadath 06-26-2006 03:12 PM

TFP needs an embarrassed smiley. Thanks. I'll go back in the corner now.

Dilbert1234567 06-26-2006 03:25 PM

lol, nah its ok, we all forget the basics some time.


All times are GMT -8. The time now is 02:38 AM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73