Auto start & stop program

Soldato
Joined
17 May 2013
Posts
2,943
Location
West Sussex, UK
As some will know Gigabyte RGB Fusion is horrible software. It caused me all sorts of problems including reboots and crashes.

I now have to start it up, allow it to do it's thing, then close it again.

How can I automate it? I can auto start it in Task Scheduler, but not sure how to auto close it once it's opened.

Also, I have to give permission to UAC for it to run. But checking the properties of the file (run as administrator) is unticked.
 
How long do you have to wait for it to run?

Only asking as you should be able to get task scheduler to run a batch file which will run the program, wait a bit and then kill it. It just means you'll have a command prompt window open whilst it's running.
Code:
path/to/exe.exe
timeout /t 10
taskkill /im programnamehere.exe
 
It takes about 7 seconds to fully load and set the LED colour.

Do I create a .bat for that and stick it in the startup folder?
 
I tried this:
Code:
C:\Program Files (x86)\GIGABYTE\RGBFusion\RGBFusion.exe
timeout /t 10
taskkill /im RGBFusion.exe


But got this in cmd:
Code:
C:\Users\Chris\Desktop>cd C:\Program Files (x86)\GIGABYTE\RGBFusion\RGBFusion.exe

The directory name is invalid.

C:\Users\Chris\Desktop>timeout /t 10

Waiting for  7 seconds, press a key to continue ...


I then made this and stuck it in the same directory as the program:
Code:
RGBFusion.exe
timeout /t 10
taskkill /im RGBFusion.exe


When doubled clicked to test this would ask my permission to open (need to figure out how to stop that), and start the program. The command prompt stalls and it remains open. CTRL+C doesn't work, I have to hit the cross.
 
You might have to put quotes around the directory name in your first example for it to work. You can double click the file to make sure it runs but ideally shove it in task scheduler upon login.

Without disabling uac I'm not sure there's a way to avoid the prompt. Task scheduler will let you run as admin but I think it'll still have the prompt.
 
Back
Top Bottom