Could somebody tell me why the following isnt working…
:PHASE_ONE
SET /P input_text= ENTER PASSWORD:
for /f "delims=1234567890" %%A in ("%input_text%") GOTO PHASE_ONE
Im trying to avoid numerical values
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your syntax is wrong. You are missing a
DObefore yourGOTO.However, your logic is also the wrong way round – you are actually ensuring that the password must only be numbers.
The following will restrict it to letters, for example:
However, you would be better off using the
FINDSTRcommand, such as this: