I'm trying to mask user input but since I'm a newbie to CMD / batch script and trying to get my things private, I might need a little help from you all.
Here is the script (it's from Google anyway). The password is "PASSWORD".
Your replies will always be useful. Thank you before.@ECHO OFF
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDPrivate
:CONFIRM
echo lock folder? (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 "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:
set/p "pass=> "
if NOT %pass%== PASSWORD goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo invalid password
goto end
:MDPrivate
md Private
echo Private created successfully
goto End
:End