How To Password Protect Folder – Steps
Password Protect Folder Without any Software

1. Open Notepad on your computer. Now Copy the below code and paste it there.

cls
@ECHO OFF
title Folder Private
if EXIST “UCHETECHS LOCKER” goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the 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 “UCHETECHS LOCKER”
attrib +h +s “UCHETECHS LOCKER”
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p “pass=>”
if NOT %pass%== UCHETECHS goto FAIL
attrib -h -s “UCHETECHS LOCKER”
ren “UCHETECHS” Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
make folder password protected without any software
create a password protected folder without any special software
password protect folder without software in windows 7
how to create password-protected folder in windows xp without any software

Note: You can change the password with your desired one you just need to edit this line “if NOT %pass%== UCHETECHS goto FAIL” . You can replace “UCHETECHS” with your password.


2. Now save the text code as Locker.bat.

Password Protect Folder Without any Software

3. Now run the Locker.bat file from your selected saved location. A folder named “Private” will be automatically created in that directory.

Lock Folder without any Software in Windows 8, 10.

4. Now place the files you want to protect in the “Private” folder.

5. Double click the Locker.bat file and it will ask you “Are you sure you want to lock the folder(Y/N)”.


6. Type Y and hit enter; Folder “Private” will then get hidden.

6. Next, click on the Locker.bat file which will ask you the unlock password. The password is UCHETECHS.

Congrats! All your folder will now be securely locked with a password. So each time you want to access your files, you will be required to input your password and you will then gain access to your windows folders. To hide more folders, simply move them to the “Private” folder and run the Locker.bat file. Now you will see your files and folders in “Private“.

it works for windows 10, 8 and 7 or even XP