Go down
avatar
johndeben
Posts : 1
Join date : 2019-06-28

Problems with Caffeine. Empty Problems with Caffeine.

on Fri Jun 28, 2019 4:50 am
I made the following batch file. It seems to only process the first line. Also, Ctrl-C doesn't seem to work.
Can anyone help?
Thank you.

C:\Users\John\Downloads\caffeine.exe -useshift -showdlg
Pause
xcopy C:\Users\John\Temp\Test2.txt Test2x.txt
Pause
C:\Users\John\Downloads\caffeine.exe -appexit -showdlg
Pause
avatar
Sooyke
Posts : 147
Join date : 2018-04-28

Problems with Caffeine. Empty Re: Problems with Caffeine.

on Fri Jun 28, 2019 8:52 am
Does your batch file opens a commandline window? The caffeine popup will take away the focus.If i remember well the commandline window must be active window to get the "any key" press to exit the Pause.

I am not so familiar with batch commands but do you not need  " Start " to run an exe ?

Start C:\Users\John\Downloads\caffeine.exe -useshift -showdlg
Back to top
Permissions in this forum:
You can reply to topics in this forum