2

I'm doing a loop to check the battery status of a windows tablet. Therefore I wait 20 seconds to controll the battery status.

when I call

TIMEOUT /T 20 /NOBREAK

it works on 20 tablets perfecly. on one tablet I'm getting sometimes the callback "Waiting 12328783 seconds, press..." the seconds value is a huge value...

why this tablet callback a total wrong waitng time?

1
  • 1
    possibly related - maybe choice solves your problem. Commented Feb 9, 2017 at 15:00

1 Answer 1

2

Best guess is that the machine is using something other than timeout.exe, probably a batch file with the name timeout.bat or timeout.cmd.

To fix this change the command to read:

TIMEOUT.EXE /T 20 /NOBREAK

Or:

"%__APPDIR__%TIMEOUT.EXE" /T 20 /NOBREAK
Sign up to request clarification or add additional context in comments.

2 Comments

this happens not every time, In 4 of 5 cases it works fine.
If using the options I have provided does not fix the issue you reported then the issue becomes a computer one, not a script/coding one, and is out of the scope of this site.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.