Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Fixed [v26.00.26] Crash after answering INKEY with <Ctrl>+C

Jan
649
15
Hi

TCC crashes here EACH time when I answer INKEY with <Crtl>+C ...

My code:
Code:
@echo off

rem EJECTMEDIA with question for the drive letter

:AskForDrive
set askfordrive=
echo.
inkey /c /k"hijklmnopqrstuvwxyz9" Welches Laufwerk soll sicher ausgeworfen werden (i-z, 9 = Abbrechen)?  %%askfordrive
iff "%askfordrive" == "9" then
  goto End
endiff
rem echo %askfordrive
ejectmedia %askfordrive

:End
unset askfordrive

PS: Microsoft Windows 10 Pro x64 [18363.752] [1909] TCC 26.00.26 x64
 

Similar threads

Back
Top