Set password for calling CMD

Time:2022-1-15

Note: enter the correct password before using CMD

Copy codeThe code is as follows:
@echo off 
Title enter password to use CMD
:first 
cls 
Set / p#pw = please enter CMD password:
if “%pw%”==”jb51.net” goto  enter 
Echo} password input error, please re-enter  
goto first 
enter: 
cls 
Welcome to the China batch processing alliance forum
pause 
prompt jb51.net: 

The password is jb51 Net, you can set it yourself and save the above code as mybat Bat to the system folder and modify the registry key
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor] “AutoRun”=”jb51.bat”