vendredi 17 novembre 2017

Is there a set /p wildcard entry?

I'm sure there is a way but my google game is not that strong. Is there a way to get a wildcard entry for set /p? In my example I will use * to show where I would like the wildcard.

set /p exam="enter exam number "
if %exam%=6* goto 1
if %exam%=2* goto 2

So if the exam starts with 6 it will go to :1 same with it starting with 2. Hopefully I explained this well enough.

Aucun commentaire:

Enregistrer un commentaire