I am trying to create a password field and want to limit the user to use 8 or more characters for their password. Here is what I have in my code:
set /P "pass=Create Folder Password:"
if NOT "%pass%" GEQ 8 goto INVALID
I realized that the inequalities only work for numbers, but I was wondering if there is any way to use a similar method to check the length of the string
Aacini's Solution:
set /P "pass=Create Folder Password:
if "%pass:~10%" equ "" goto INVALID
This solution worked for me.