Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
i want batch file search in file if have small english letters and numbers only it will send him to fin,if he have symbol different than small english letters and numbers it will send him to end

for example:

set /p test=enter password
echo %test%>123.txt
findstr /m "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,1,2,3,4,5,6,7,8,9,0"
if %errorlevel%==0 goto fin
if %errorlevel%==1 goto end
:fin
echo your password have small english letters and numbers
pause
exit
:end
echo your password have symbol different than small english letters and numbers
pause
exit

It is not necessary to be a code of findstr i write findstr to clarify the meaning
Posted

1 solution

 
Share this answer
 
Comments
xxv2012 20-Jan-14 18:56pm    
Abhinav S
can u give the code Himself ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900