How to Lock Folder on Windows 10 With Password Without Any Software




How to Lock Folder on Windows 10 with Password without Password 

Unless you’re some kind of saint or someone who barely uses a computer, you’ve felt the need to lock your private files behind a password at some point in time. Locking your private files can be really important when you are living with nosy roommates or even family members. These days, doing that on a smartphone is pretty darn easy thanks to a plethora of app and file locking apps. On a PC, locking an app is still somewhat of a dream. Locking files and folders though has been possible since more than a decade ago. That’s usually through third-party software. Today though we’ll show you how to lock a folder on Windows 10 with a password without any third-party software.

 

Warning

While this is a tried and tested method we still can’t take any responsibility for lost files or folders. It’d be best to test this out first on a folder that isn’t important. Also, it is possible that someone who understands the process can reverse engineer the process. So this isn’t meant to keep tech-savvy folks out, just nosy family members or friends who you don’t trust.

 

How to Lock Folder on Windows 10 Without Any Software

  1. Right-click inside a drive or folder where you would like to place your locked folder and select New > Text Document from the context menu. You can even do this on the desktop if you want.
  2. Name the file anything you want or just hit Enter. The filename doesn’t really matter. 
  3. Once created, double-click on the text file to open it. Alternatively, you can simply open Notepad from the Start menu and skip directly to step 4. This way you won’t have to delete the newly created text file later.
  4. Copy and paste the text below into your newly created text document.
    1. @ECHO OFF
    2. if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
    3. if NOT EXIST Private goto MDPrivate
    4. :CONFIRM
    5. echo Are you sure to lock this folder? (Y/N)
    6. set/p "cho=>"
    7. if %cho%==Y goto LOCK
    8. if %cho%==y goto LOCK
    9. if %cho%==n goto END
    10. if %cho%==N goto END
    11. echo Invalid choice.
    12. goto CONFIRM
    13. :LOCK
    14. ren Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
    15. attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
    16. echo Folder locked
    17. goto End
    18. :UNLOCK
    19. echo Enter password to Unlock Your Secure Folder
    20. set/p "pass=>"
    21. if NOT %pass%== YOUR PASSWORD goto FAIL
    22. attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
    23. ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
    24. echo Folder Unlocked successfully
    25. goto End
    26. :FAIL
    27. echo Invalid password
    28. goto end
    29. :MDPrivate
    30. md Private
    31. echo Private created successfully
    32. goto End
    33. :End


  5. In the text file, find the text Your-Password-Here. Replace Your-Password-Here with the password you want to set for the locked folder. For instance, if you want the password to be 12345, replace Your-Password-Here with 12345 as shown below. 
  6. Click File > Save As… and then in the popup window select All files from the drop-down menu next to the label Save as type

  7. Now type FolderLock.bat in the File name field and click Save. You can now delete the text file you earlier created. Also, you can name the file FolderLock.bat or anything else you want with the extension .bat. For the sake of this article, we’re going with FolderLock.bat.
  8. Now double-click on the FolderLock.bat file and a new folder named Locker will be created. 

  9. Drag and drop all the files you want to hide and lock into the folder. When you’re done, double-click the FolderLock.bat file again and this time you’ll be asked if you want to lock the folder. Type Y in the command prompt window and hit Enter. 

  10. You’ll notice the Locker folder is no more visible. It can’t be seen even if you turn on the option to show hidden files. Even if you try accessing the folder via the address bar, Windows will return the message that it could not locate the folder.

  11. The only way to access the folder again is to double-click on the FolderLock.bat file again. This time, it’ll ask you to enter the password you had earlier set. Type in the password and hit Enter and you’ll notice the folder will appear again.

When you’re done with your folder double-click on the FolderLock.bat file again and re-lock it. That’s it! You have successfully locked a folder on your Windows 10 and now you have a hidden safe inside your PC.



 

 
 

Comments

Popular posts from this blog

ThopTV APK Free Download

GTA 5 Cheats PC: All Cheat Codes for GTA 5 on the PC

How to Set Up a Free VPN in Android, IOS, Mac & Windows