I'm trying to make a simple batch script that will either Pause or resume my GPU Folding client. Sometimes if I'm trying to watch videos while it's folding, the mouse gets all jerky and annoying, so I just like to pause it while I watch and then start it up again. Should be a fairly simple script, but doesn't seem to be working.
I'm a noob and have copied most of this/adapted it from various google search pages.
Any idea what I'm doing wrong? Thanks.
I'm a noob and have copied most of this/adapted it from various google search pages.
Code:
@echo off
//This first line checks to see if the GPU Folding Client is running.
//If the License server is up it's safe to assume the client is also up
NET START|FIND "Folding@home-GPU-[2]"
//Tell the script to go to the proper answer
GOTO answer%errorlevel%
//If errorlevel returned 0, the service is running so we shut it down and exit the script
:answer0
NET PAUSE "Folding@home-GPU-[2]"
EXIT
//If errorlevel returned 1, the service is down so we start it up and quit the script
:answer1
NET RESUME "Folding@home-GPU-[2]"
EXIT
Any idea what I'm doing wrong? Thanks.