visit
Sometimes, we need to apply a bit of extra protection to the data on our computers. We might want to protect our tax records from prying eyes, or lock away business plans from our competitors. Or we might just want to ensure that any children with access to our device can't access inappropriate content.
In any case, knowing how to add password protection to a Windows folder is a useful skill. But as any Windows 10 users will discover when locking down folders, it isn't as easy to do so as you might think.
Windows 10 does not allow folders to be password protected as a native feature (unlike earlier Windows versions). Nevertheless, it can be done, and you don't need to download third party software.
Just follow this tutorial, and you'll be able to add password protection to any sensitive files in minutes.@ECHO OFF
title Folder Locker
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u 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 Locker “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 Unlock folder
set/p “pass=>”
if NOT %pass%==Your-Password-Here goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End
The process above will add password protection to simple folders. However, we can also password protect individual files. That can be a more efficient and targeted option for sharing confidential pdfs or images, and it requires a slightly different procedure.
Adobe Acrobat can be used to protect pdf files. Just open the document to be protected, go to the "File" menu and choose "Protect Using Password". You can then set a password for either viewing or editing the document.If you need to password protect a Windows doc file, open Office and bring up the document. Head to "File", "Info", and then "Protect Document". Then choose the "Encrypt with password" option.The two processes above can also be used to protect other file formats such as jpeg images. Just import them as usual, and apply the procedures described.