CommentsLock. bat file @ echo offtitle password verification SETLOCALset pwd = 0 set times = 3 echo ____________________________________________________________________________ echo you are using [Anlge] CMD, no command can be executed without the permission of [Angle]. The following is lock. bat file @ echo off
Title password verification
SETLOCAL
Set pwd = 0
Set times = 3 echo ________________________________________________________________________________
Echo: you are using the CMD of [Anlge]. You cannot execute any command without the permission of [Angle,
Echo all your operations and messages used this time have been recorded in the log. If you do not have a password, contact
Echo [Angle] contact. You already have a password. Please enter the password!
Echo ________________________________________________________________________________
Echo ####################################### ##################################> e: \ CMD \ mylog.txt
Echo operation: Activation password verification time: % time % Date: e %> e: \ CMD \ mylog.txt
Echo status: Waiting for verification ...... > E: \ CMD \ mylog.txt
Echo.> e: \ CMD \ mylog.txt
Echo [LOGIN]: password
Set/p pwd = enter your password:
Set/A times = % times %-1
If % pwd % = fangzi goto pass
Echo ***** incorrect password verification. Please enter your password again. % times % chance to enter your password *****
Echo.
If % times % = 0 goto close
Echo status: Failed password verification time: % time %> e: \ CMD \ mylog.txt
Goto password: close
Echo status: the user entered the password three times. The program lock time is % time %> e: \ CMD \ mylog.txt
Title sorry, you cannot use CMD of [Angle]
Echo --------------------------------------------------------------------------------
Echo the program has been locked because you failed to verify the password three times. You cannot continue the operation. You can choose to close it.
In this window, you can also contact [Angle] by leaving a message. after entering the message, press enter to submit it!
Echo --------------------------------------------------------------------------------
Echo [MESSAGES]: message
Echo ________________________________________________________________________________
Set/p msg = enter your message:
Echo.> e: \ CMD \ mymsg.txt
Echo ####################################### ##################################> e: \ CMD \ mymsg.txt
Echo Date: e % time: % time %> e: \ CMD \ mymsg.txt
Echo message content:> e: \ CMD \ mymsg.txt
Echo % msg %> e: \ CMD \ mymsg.txt
Echo.> c: \ message.txt
Echo ...... OK ......
Echo: Your message has been recorded. You can close the window or choose to continue leaving the message.
Echo operation: user message time: % time %> e: \ CMD \ mylog.txt
Goto message: pass
Echo status: the application is open. Welcome time: % time %> e: \ CMD \ mylog.txt
CMD of title [Angle]
ENDLOCAL ------------------------------------------------------------------- The following is setup. bat @ echo off.
Copy/y lock. bat % windir % \ lock. bat
Echo lock. bat is successfully installed.
Regedit/s lock. reg
Echo lock. reg registered successfully
----------------------------------------------------- Files used for unloading
Unlock. reg @ echo off
Del/f lock. bat % windir % \ lock. bat
Echo lock. bat deleted successfully
Regedit/s unlock. reg
Echo lock. reg anti-registration successful ------------------------------------------------------ double-click setup. bat to install it! When CMD is used, the password is fangzi (all in lowercase. The password here is case sensitive)
All logs are stored in E: \ CMD \ mylog.txt.
All messages are stored in E: \ CMD \ mymsg.txt.