Code: Select all
@echo off
echo Pressing of any key will close this window - except when you press W
timeout /t 10 | findstr /R ".0$" > nul
&& goto continue || exit
command > nul 2>&1
:continue
Moderator: DosItHelp
Code: Select all
@echo off
echo Pressing of any key will close this window - except when you press W
timeout /t 10 | findstr /R ".0$" > nul
&& goto continue || exit
command > nul 2>&1
:continue
It's obviously a bug in the code. Nobody here is capable of elaborating further because Windows is closed source.How could this be happening
By pressing one of the 100+ other keys on the keyboard. This is such a non-issue that I'm surprised you bothered to make a second topic about it after nobody thought it was interesting enough to post in your original topic. Feel free to reach out to Microsoft if this is genuinely impeding your workflow, but you are literally the only person I've ever seen complain about this, so don't expect it to get any meaningful priority.more importantly: how to fix / workaround this issue?
Code: Select all
@echo off
setlocal enableextensions enabledelayedexpansion
<nul set /p "=Press A/B/C to pause or any other key to exit..."
:: Remove call arguments to disable separate key handling
call :choice "a b c"
if !errorlevel! equ 0 (
exit
) else (
if !errorlevel! equ 1 echo "Pressed a"
if !errorlevel! equ 2 echo "Pressed b"
if !errorlevel! equ 3 echo "Pressed c"
pause
)
exit
:choice [choices]
powershell -Command "$Key = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown').Character ; $Choices = '%1' ; $ErrorLevel = 0 ; foreach ( $_ in $Choices.split() ){ $i++ ; if ( $Key -eq $_ ){ $ErrorLevel = $i } } ; exit($ErrorLevel)"
exit /b
endlocal
I am unable to do so because when trying to create Microsoft Account nothing happens after I enter the verification code from an e-mail I receive [i.e. there is no next step to be chosen / directed to, just a "Create account" text is shown which is not a link]; while logging in with my GitHub account is impossible due to it using e-mail address that is "a work or school account. You can't use this GitHub account to sign in."]ShadowThief wrote: ↑18 Nov 2023 19:25It's obviously a bug in the codeHow could this be happening
[...]
Feel free to reach out to Microsoft
[...]