im nouveau à la programmation par lots. Je me demandais s'il y avait un moyen d'écrire une invite temporisée sans utiliser choice.exe parce que j'utilise Windows XP. Quelque chose dans le style de:Batch Windows xp timed invite sans choice.exe
@echo off
/set p answer=input y or n in 30 seconds
rem start timer
if answer==y(
goto :action1
)
if answer==n(
goto action2
)
rem if timer has expired without input go to :action1
:action 1
echo you have entered y
:action 2
echo you have entered n
Merci pour les conseils.