Skip to main content

How to hide and password protect a folder in windows 10

Hide and use password protect for Folder in Windows 10 using Notepad.

1. Create a bat file with the scripts (see at below of the post) by copying and paste it to the Notepad. and save as *.bat , for example Private.bat. Save anywhere you want,  at root of the drive or inside the folder.

 See example. My bat file named Private.bat  I put inside the folder.


2. Double click Private.bat
It will generate a new folder, in this example the name is PrivateFolder (you can rename/replace it, by setting it in the Notepad).






3. Then you can put your privacy files into this folder (PrivateFolder)
4. To hide the PrivateFolder, double click again the Private.bat , it will ask you 'Are you sure to lock this folder? (Y/N)', write Y and hit enter key.



Now the PrivateFolder is missing. At this condition your files are safe when someone else using your computer.



5. To make it (PrivateFolder) appearing again.
Double click Private.bat
It will ask you the password. 'Enter password to unlock Your secure Folder'.


Enter the password.
(The temporary password is howto72 you can change it inside the scripts, find the word howto72 then replace with yours)


The PrivateFolder will appear again.




Here the code/scripts, copy and paste it to Notepad.

cls
@ECHO OFF
title Folder PrivateFolder
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST PrivateFolder goto MDPrivateFolder
: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 PrivateFolder "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%==howto72 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" PrivateFolder
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDPrivateFolder
md PrivateFolder
echo PrivateFolder created successfully
goto End
:End
.


You can change the name of folder by rename all PrivateFolder (red font) with yours.
To change the password, replace howto72 (blue font) using your password.

Save it with bat extension (*.bat), for example Private.bat
Save as type; All Files


Popular posts from this blog

How to Enable Hyper Terminal In Windows 7

Hyperterminal Windows 7. Windows 7 Hyperterminal. Hyper terminal is used for data communication via serial port com or TCP/IP Winsock. Unfortunately on Windows 7, Windows 8 and Windows 10 we can't see anymore, even though many of us who still need it, and it is not the solution if we have to go back to Windows XP. The solution :

Vaio stuck on loading screen after upgrading to Windows 10

My Sony Vaio laptop model : VPCCA16FB with originally using Windows 7 operating system, then now I already upgraded it to Windows 10. All drivers are already installed for each device, everything is OK with this Windows 10 OS. The only problem is:  when I switch the laptop on or restarting it, after vaio logo appears then it stuck with blank screen and it takes about 2 minutes. After that, then it continues to loading Windows. After I googling about the problem, I am not only the one, other people also have the similar problem with their laptops. The cause is in the Ultra Low Power State (ULPS) system. ULPS is a feature or mode in hardware (graphics card) designed to save power by reducing energy consumption to very low levels. Now the problem is solved. If you have the same or similar problem, maybe this below step will help you too.

How to deny access to a drive in Windows 10

How to disable access to drives in Windows.  One of ways to  make disable access to drives in Windows (all Windows, Windows 10, Windows 8, Windows 7, also Windows server.. ), you can use Group policy editor . Below are  the steps: 1. Press Windows + R  (to open Run command ), write gpedit.msc at Run column, then hit Enter or click OK.