troubleshooting Question

Windows 10: VBS to start a EXE. Then stop a service. Once closed start service back up and exit script.

Avatar of Tristan George
Tristan George asked on
Microsoft DOSWindows BatchComputer GamesVB Script
1 Comment1 Solution231 ViewsLast Modified:
Need a script that will:

1. start a program in:  D:\Program Files (x86)\Steam\steamapps\common\DARK SOULS III\Game\DarkSoulsIII.exe
2. wait 5 Seconds, then STOP the Service: "windows management instrumentation"
3. Every 60 seconds check if DarkSoulsIII.exe is running. If it is do NOTHING, but loop back to the 60 second check.
4. If it is NOT, then START the service "windows management instrumentation"
5. Kill script. Done.

Thanks for everyones help. I am thinking this is pretty simple, but examples I find similar are for more complex scripts which is actually making doing the above hard to know how.

Thanks again.
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros