Jump to content
Corsair Community

Running CMD (.bat/batch) files through Corsair Icue (all versions afaik)


chaoddity

Recommended Posts

Hello!

I was attempting to create a batch file that would perform a bunch of actions (launching applications, opening folders, etc).
I did NOT want this batch file to run silently.  I wanted it to run... with a prompt asking if you were sure you wanted to run it.  (so I dont launch 8 million applications while playing a game).

Anyway, this doesnt work normally.  Normally when you run a .bat it opens as a sub-process of icue and doesn't run.
However, I happened to have stumbled across a workaround.

If you compile the .bat file as an exe using this application (no special settings needed):

BAT TO EXE CONVERTER by Faith Kodak

and then you set these executables to be run as an administrator (right click the exe, compatibility settings)... this converted batch file will run just fine.

Quote

::   APPLICATION LAUNCH   ::

::Change Window Settings::
set programname=G1 BUTTON
pushd %~dp0

::Cleanup::
@ECHO off
cls
COLOR 08

::G BUTTON::
cls
ECHO G1 WAS PRESSED!
ECHO.
SET "A="
SET /P A=Press 'Y/y' to open X workflow
ECHO.
IF "%A%"=="y" GOTO buttonthing
IF "%A%"=="Y" GOTO buttonthing
EXIT
:buttonthing
cd /d G:\Folder
start .
cd /d "C:\Program Files\Mozilla Firefox"
start firefox.exe
EXIT

I see several threads from months or years ago of people having this issue.

Hopefully this helps others in the future.

 

-Chaoddity

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...