Hello, i need help with the code:
@ECHO OFF
set tries=3
set password=PaSsWoRd
:checker
if %tries% EQU "0" goto :EXIT
Echo You have %tries% attempts!
color 5
set /P pass= Enter Password:
if /I %pass% EQU %password% (echo Secret_Message| clip
) else (set /a tries=%tries% -1 goto :checker)
EXIT
exit
_______________________________________
__________________________________
When i write a wrong password i get a "Missing operator." error. But when i write the right password it works.
I want the program to ask for a password then check it and if it's the right password then change the clipboard, if the password is wrong the 1st time go back and put the password again,the 2nd time the same and the 3rd to close.
Thanks in advance.