批处理文件命令隐藏密码(记事本)

时间:2019-12-05 16:06:22

标签: batch-file mask notepad

好几年来我没有使用创建命令,而且我现在真的不知道如何使用它。我最后看到的是我小时候做的一个文件,现在我正在看它,我想用*****屏蔽密码,但是我不知道怎么做。

有人可以帮助我吗?

cls
@ECHO OFF
title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Want to close the Folder?
set/p "cho=>"
if %cho%==S goto LOCK
if %cho%==s goto LOCK
if %cho%==N goto END
if %cho%==n goto END
echo Invalid Choice.
goto CONFIRM
:LOCK
ren Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder Locked
goto End
:UNLOCK
echo Enter Password to open the folder
set/p "pass=>"
if NOT %pass%== enterherepassword goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Sucessfully opened
goto End
:FAIL
echo Wrong Password
goto end
:MDLOCKER
md Private
echo Private created with succes
goto End
:End

0 个答案:

没有答案