In Windows batch files, I accept variable from user input by set /p var1=
, after var1
is used, I don't know how to reset/clear its value.
If I don't reset/clear its value, when user meets set /p var1=
again, and user enter directly. the previous input value will be still there. I don't want it, How to reset it for new user input?