Re dengt:
不使用第三方工具的代码也有,只是比较复杂,如果有兴趣可以参考;如果允许明码显示密码,则问题退变成从输入端获取密码串然后比较,代码还可以再简单一些。
可自定义密码的密码程序(批处理)
http://www.cn-dos.net/forum/viewthread.php?tid=8804
Regarding dengt:
There are also codes that don't use third - party tools, but they are relatively complicated. If you are interested, you can refer to ; if it is allowed to display the password in plain text, then the problem degenerates into obtaining the password string from the input end and then comparing it, and the code can be simpler.
Password program (batch) with custom password
http://www.cn-dos.net/forum/viewthread.php?tid=8804