This command shows in an admin CMD how many seconds the boot manager waits for the standard operating system to boot automatically:
bcdedit /enum | find "timeout"
Do I want to press the output value in seconds into an environment variable in batch? But it doesn't work like this:
for /f "tokens=2*" %%a in ('bcdedit /enum | find "timeout"') do set "value=%%a"
echo %value%
pause
exit
Does anyone know how to set up the token command?
I would first of all ensure that I'm only outputting the bcdedit information under the appropriate identifier,
{bootmgr}. Then I would not use the English language only stringtimeout.From a cmd window 'Run as administator':
Or from a windows batch-file 'Run as administrator':
In this example the number of seconds from a successful result should be saved as the string value of a variable accessible as
%$%.