Page 1 of 1
memory carte
Posted: 26 Oct 2020 05:18
by Habib
Hi everybody
I am traying to creat a batch with it we learn english vocabulary . I have put en Batch on attachements if you can see it , and tell me where is the errors .
thank you so much
Re: memory carte
Posted: 26 Oct 2020 20:21
by Compo
Perhaps something like this will assist you
Code: Select all
@Echo Off
SetLocal EnableExtensions DisableDelayedExpansion
Set "Reponse="
For %%G In (
"pomme=apple"
"porte=door"
"bras=arm"
"voiture=car"
) Do For /F "Tokens=1,* Delims==" %%H In (%%G) Do (
SetLocal EnableDelayedExpansion
Set /P "Reponse=Quel est le mot anglais pour %%H? "
If /I Not "!Reponse!"=="%%I" (
Echo La reponse etait %%I.
) Else Echo Bravo, vous aviez raison.
EndLocal
)
Pause
Re: memory carte
Posted: 27 Oct 2020 11:51
by Habib
Hi , yes i tried your batch and it worked
thank you , i am going to learn your batch
much thinks