cls加密
@ECHO OFFit
title Folder Private密碼
if EXIST "HTG Lock" goto UNLOCKword
if NOT EXIST Private goto MDLock文件
:CONFIRM
echo 你肯定要加密隱藏Private文件夾嗎?(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Private "HTG Lock"
attrib +h +s "HTG Lock"
echo Folder locked
goto End
:UNLOCK
echo 輸入密碼來解鎖文件夾
set/p "pass=>"
if NOT %pass%== 在此設置密碼 goto FAIL
attrib -h -s "HTG Lock"
ren "HTG Lock" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLock
md Private
echo Private created successfully
goto End
:End
「在此設置密碼」處可替換成你想要設置的密碼,注意不要刪掉空格,完成後記得保存