Menu Close

How to Properly Lock and Secure Your Files

Many times you may have some sensitive files or information that you do not want other people to find out. In the past you could simply make the folder hidden but with the general population becoming more tech savvy by the day you will have to go the extra mile to secure your data. This simple set of instructions will help you to make sure your data is safe from the general user

1: Create a new text document by Right clicking->New->text document

2:Copy and paste these exact lines of code into the text document.

cls
@ECHO OFF
echo // Check1 (In Main Function)
title Folder LockFolder
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLockFolder
if NOT EXIST LockFolder goto MDLockFolder
:AuthConfirm
echo Are you sure u want to Lock Folder (Y/N)
set/p “cho=>”
if %cho%==Y goto LockFolder
if %cho%==y goto LockFolder
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto AuthConfirm
:LockFolder
ren LockFolder “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Folder LockFolder Locked!
goto End
:UNLockFolder
echo Enter password to Unlock Folder
set/p “pass=>”
if NOT %pass%==TYPE YOUR PASSWORD HERE goto FailUnlock
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” LockFolder
echo Folder UnLocked successfully!
goto End
:FailUnlock
echo Invalid password!
echo Try again? (Y/N)
set/p “choice=>”
if %choice%==Y goto UNLockFolder
if %choice%==y goto UNLockFolder
if %choice%==N goto END
if %choice%==n goto END
:MDLockFolder
echo // Check2 (In MD Dir Function)
md LockFolder
echo Folder LockFolder created successfully!
goto End
:End

*Note* Where it says type your password here, well basically type your password there.

4: Save the file as a .bat by naming the file *Your File Name Here*.bat then right underneath that make sure the window says All Files.

This will now cause a new folder to appear called Lock Folder do not put anything in that folder yet as it is not secure yet. While other sites may stop at step 4 what they don’t tell you that someone can easily right click the .bat file and click edit to see the entire code including your password. These next few steps will convert the .bat file into a .exe which makes the code inaccessible to the average user.

5: Download the bat to exe converter here

http://download.cnet.com/Bat-To-Exe-Converter/3000-2069_4-10555897.html

6: Use Winrar or any other extracting program to extract the files.

7: Once you are done extracting run the Bat_To_Exe_Converter.exe

8: Locate your .bat file and place it where it says Batch file

9: Hit Compile and tahdah! Your done

Now what you do is put all your sensitive information into the lockfolder then run the new .exe program and a command prompt-like box will appear asking if you want to lock the folder. press y then enter to lock the folder. To access the folder double click the application and it will ask you for the password. Type the password in exactly as you typed it in the .bat file including capital letters or not. Hit enter to unlock the folder