2018-05-11, 12:33
(2018-05-11, 11:14)fregrinz Wrote: SUCCESS i think lol.. (ugh one snag galaxy when click close runs stupid background system tray processes so fouls up bat as still technically running)
Quote:PSKILL KODI
START "" "D:\Origin\Origin.exe"
:LOOP
PSLIST Origin >nul 2>&1
IF ERRORLEVEL 1 (
GOTO CONTINUE
) ELSE (
ECHO Origin is still running
TIMEOUT /t 10 /nobreak > NUL
GOTO LOOP
)
:CONTINUE
KODI
EXIT /b
Maybe the problem is that you use
START
to execute Origin.exe. START
process finishes as soon as Origin.exe
is started. Have you tried just calling "D:\Origin\Origin.exe"
@to everyone: if you have some useful scripts in Windows please send them to me, open a pull request in Github or open an issue in Github (if you don't know how to make pull requests) so I can include them in the AEL Asset Library.