Hi guys
I know the title of this thread is a show stopper for a lot of us. But what I want to do is stop two services from running for a period of time then restart them. I know I can do this from the command prompt by using net stop servicename then restart with net start servicename. I need these two services stopped to do some work on the database. I do this manually right now and want to automate the process. I tried process.start with the command net stop but that did not work out. If I try the Process List I get the process running but not the services.
I'm actually doing this from a Script Task in SSIS (the script task uses VB.Net 2008).
Any help please
I'll understand if people don't want to reply as this can be used for things that we all try to prevent, but I figured I'd take a shot.
Gary




. But what I want to do is stop two services from running for a period of time then restart them. I know I can do this from the command prompt by using net stop servicename then restart with net start servicename. I need these two services stopped to do some work on the database. I do this manually right now and want to automate the process. I tried process.start with the command net stop but that did not work out. If I try the Process List I get the process running but not the services.
Reply With Quote