If you have on your personal computer Private files Which you think you should protect from the curiosity of the other computer users, one of the solutions would be to collect those files into one folder and then to Blocked access to it with the help of a parole. Most methods that allow blocking access to a Windows folder using a password involves the use of one program third-party, but if you do not want to use such a program, you can block access to that folder through a simple script, which you can create yourself
How can we protect a Windows Folder with password without using Third-Party applications?
- First of all, create an folder nou (eg sth), which will serve as host folder For the folder you will protect with password

- Then open one Fisier text (Text Document) and give copy/paste the code below in it
 cls
@ECHO OFF
title Folder Personal
if EXIST "Locker" goto UNLOCK
if NOT EXIST Personal 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 Personal "Locker"
attrib +h +s "Locker"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== PASSWORD goto FAIL
attrib -h -s "Locker"
ren "Locker" Personal
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Personal
echo Personal created successfully
goto End
:End 
- After copying the above code to the open text file, change PASSWORD with Password you want to use in order to block access at the personal folder; Then save the text file under the name locker.bat (extension .bat is essential because the script to work!) in the host folder previously created (in this case in sth)

- Give double-click on the script .bat to create The folder that will be protected by password (The folder will have the name Personal; If you want to call it otherwise, change its name in the script)

- After creating personal folder, open the respective folder and move in this all the files you want to protect
- Then close the folder and give double-click again on the file locker.bat in order to block access to this: a message will be displayed Are you sure you want to lock the folder<And/n>; taste Y Then give Bodyr for a block access to personal folder

- You will notice that the folder will disappear
- Roll the script .bat again and Enter your password set for access to folder, then give Enter

- If you enter the correct password, the folder Personal will be displayed again; If you enter The wrong password, the script will simply close (in case you forget the password used, give click-right on the file locker.bat and select Edit; The script will be open as Fisier text And you can View your password set for the folder lock)
Another way of access the personal folder fara a introduce Access password is that of making visible Protected system files accessing Folder Options (in Windows Explorer Click on Organize > Folder and search options). In tab-ul View, disperse the option Hide protected operating system files (Recommended) and click on OK (Confirm that you want to display the protected system files). The protected folder will be displayed under the name Locker, though access to it will be unrestricted.

STEALTH SETTINGS – How to password protect a Windows folder without using third-party apps
 
			