How To Lock Any File in Laptop Windows 10


How To Lock Any File in Laptop Windows 10 – Locking files are the first step that can be done to protect personal data. At least in this way, not many people can access it arbitrarily.

How to Lock Any File in Laptop Windows 10

But it is quite unfortunate, the Windows 10 system which is currently one of the most popular operating systems, is not equipped with applications or special software to lock files by default in them.

Read more: Best Ways To Download Files From Scribd Without Login

For this reason, many people are looking for ways or even applications that can be used to do so. Well, if you are one of them, visiting this article is quite the right thing.

How to Lock and Hide Any Files in Laptop Windows 10 Without an Application

  1. Open-File Explorer and enter one of the folders in it
  2. Right-click inside the folder without touching any file, then select New
  3. Next, select Text Document
  4. Rename with names that do not refer to private folders, such as media, viruses, or names you like
  5. Don’t forget to replace the .txt behind it with the extension .bat
  6. Right-click on the .bat file, then select Edit
  7. Copy the script below into the Notepad application that opens
    title Folder Private
    if EXIST "HTG Locker" goto UNLOCK
    if NOT EXIST Private goto MDLOCKER
    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
    ren Private "HTG Locker"
    attrib +h +s "HTG Locker"
    echo Folder locked
    goto End
    echo Enter password to unlock folder
    set/p "pass=>"
    if NOT %pass%== PASSWORD goto FAIL
    attrib -h -s "HTG Locker"
    ren "HTG Locker" Private
    echo Folder Unlocked successfully
    goto End
    echo Invalid password
    goto end
    md Private
    echo Private created successfully
    goto End
  8. Replace PASSWORD with the password you want to use and then save the file by tapping File > Save
  9. Close Notepad, then run the .bat file by tapping it twice
  10. Enter the personal files you want to hide in the Private folder that has appeared automatically
  11. When it’s finished, double-click on the .bat file, press Y then Enter

This method is quite effective for those of you who want to lock multiple files at once. In this case, you can hide and lock various types of files, including photos, videos, Word documents, Excel documents, and files with other formats.

How to Open a Private Folder That Has Been Hidden in Windows 10

After successfully locking, the Private folder will be hidden by the system. Or in other words, you won’t be able to see or find the folder in File Explorer in any participation or folder.

To open it, you need to bring up the folder first. The trick, you can double-tap on the .bat file that you use to lock and hide the Private folder.

How to Lock Any File in Laptop Windows 10

Next, you can enter the password you used in the window that appears, then press the Enter key. The Private folder will automatically appear, so you can open files, move files, add files to it.

Meanwhile, to lock and hide the folder again, you only need to run the .bat file again.

How to Change Password

If a problem occurs, such as forgetting a password that is already known to others, you can replace it by editing the .bat file that was created previously. Just like when you will make it, the way to open a file is to right-click on the file, then choose the Edit option.

How to Lock Any File in Laptop Windows 10

Next look for the if NOT% pass% == PASSWORD goto FAIL section, then replace PASSWORD with the new password. When it’s finished, don’t forget to save it again, one of them by pressing the CTRL + S button on the keyboard.

Also Read:

Don’t forget to bookmark and always visit every day at because you will find the latest Technology Android games, Mod Apk, and apps ETC, that we will update every day.


Please enter your comment!
Please enter your name here