Originally posted by wang6610 at 2006-8-27 22:37:
Can you post it?
Okay.
I originally wanted a password function, and I wrote one myself with TC, here it is.
http://zhenlove.com.cn/cndos/fileup/files/PASSWORD.rar
Inside is PASSWORD.EXE
When running, it looks for PASSWORD.TXT in the same directory and reads its content as the original password.
When reading, it reads from the beginning of the file to the first carriage return, and there can be spaces and symbols before the carriage return.
Then it asks the user to enter the password to compare with the original password.
If they are the same, a PASSWORD.OK file is generated in the same directory.
If they are different, a PASSWORD.ERR file is generated in the same directory.
Both of these situations are normal operations, and a PASSWORD.RUN file will be generated in both cases. If the user presses Ctrl + C to forcefully interrupt, this file will not be generated.
When using it, you can use echo "Your Password">PASSWORD.TXT in the BAT to set the original password.
Then judge and handle according to the generation of the three status files. When using continuously, you need to delete the status indicator files yourself.
[
Last edited by NaturalJ0 on 2006-8-28 at 00:01 ]