Login | |
|
 |
RE: Start, Stop, & Restart Services (Incl. dependencies) - 5/5/2007 7:56:59 AM
|
|
 |
|
| |
dm_4ever
Posts: 2359
Score: 36
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
I tried this out the other day and it worked great. Just a thought...rather than waiting for an error to tell you there are dependent services, why not start off checking for dependent services and starting/stopping them accordingly?
_____________________________
dm_4ever My philosophy: K.I.S.S - Keep It Simple Stupid Read Me: http://www.visualbasicscript.com/m_24727/tm.htm Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Start, Stop, & Restart Services (Incl. dependencies) - 5/7/2007 3:25:58 AM
|
|
 |
|
| |
kirrilian
Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
|
quote:
ORIGINAL: dm_4ever I tried this out the other day and it worked great. Just a thought...rather than waiting for an error to tell you there are dependent services, why not start off checking for dependent services and starting/stopping them accordingly? so that if there arent any, it will go ahead and start the single service btw, the return code was the fastest/easiest way to tell if there are dependent services
_____________________________
Have you searched here ? VBScript Fundamentals My Site
|
|
| |
|
|
|
 |
RE: Start, Stop, & Restart Services (Incl. dependencies) - 1/18/2008 6:20:51 PM
|
|
 |
|
| |
kirrilian
Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
|
quote:
ORIGINAL: kxrain Just a question you will save this as?? You save this as a .vbs file and make sure you insert another line in the beginning like I stated in the Usage Usage: service_control ".","IIS Admin","restart" otherwise the script wont do anything
_____________________________
Have you searched here ? VBScript Fundamentals My Site
|
|
| |
|
|
|
|
|