I need a script that can be called by a Windows Schedule task. The script needs to do the following:
-Check to see if a process is running on the server.
-If process is running, don't do anything.
-Wait for the process to stop running.
-When process has stopped, stop a specific Service.
-Wait for Service to stop
-Windows 2003 Server
-Let's call the process "process"
-Let's call the service "service"
-VBS script or some other code that can be run by a bat file, which in turn is run by a windows schedule task would be great.