Jump to content
Corsair Community

Launch Application - BAT/EXE NOT WORKING!


rosscolcoo

Recommended Posts

I've tried everything. I've even converted my simple batch file to an EXE using a compiler.

 

I've got a simple "Sleep" script that will sleep the computer if I hit "y" on the keyboard (so that it doesn't sleep the computer if I accidentally hit the button for some reason).

 

The script is as follows:

 

@echo off

:A
cls
echo.
echo Welcome, to the yes or no prompt...
echo.
set /p menu="Do you want to Sleep the Computer? (Y/N): "
if %menu%==Y goto Yes
if %menu%==y goto Yes
if %menu%==N goto No
if %menu%==n goto No
cls
echo.
echo Press Y or N!...
echo.
set /p pause="Press any key to continue!... "
goto A

:Yes
cls
echo.
cd "c:\Program Files (x86)\SonicWall\SSL-VPN\NetExtender"
necli disconnect
timeout /t 3
rundll32.exe powrprof.dll,SetSuspendState 0,1,0
echo.
exit

:No
cls
echo.
echo Okay, let's exit...
echo.
set /p pause="Press any key to continue!... "
exit

 

Please help. I cannot get iCue to launch this no matter what I try. I need to be able to launch custom exe files.

Link to comment
Share on other sites

Longstanding bug with:

batch

powershell

or other command apps

 

in short, console window host encapsulates it somehow and for some reason. Others have complained about this for a while.

 

http://www.smithany.com/whatisgoingonhere.png

 

In my test case, it was invisible, but the application was still working. task manager shows it under icue. It may have to do with windows security or DEP? Would be nice to figure out a fix.

 

for the record, regular applications work fine

Link to comment
Share on other sites

  • 1 month later...
Longstanding bug with:

batch

powershell

or other command apps

 

in short, console window host encapsulates it somehow and for some reason. Others have complained about this for a while.

 

http://www.smithany.com/whatisgoingonhere.png

 

In my test case, it was invisible, but the application was still working. task manager shows it under icue. It may have to do with windows security or DEP? Would be nice to figure out a fix.

 

for the record, regular applications work fine

 

I'm glad you noticed, I spammed the button a while back and the background processes have been eating up my CPU for ages!

Link to comment
Share on other sites

×
×
  • Create New...