The need for more security on personal and corporate data is ever increasing, with an increasing count on data theft and security breaches. This tutorial is aimed at making your data (movies, personal documents, spreadsheets, journals, and business plans among others) more secure, by sharing a simple trick on how to create secure folders for your documents.
Follow the following steps:
- Open a new notepad document in the folder where you wish to safe-keep your documents
- Copy the following code in red and paste it into the notepad document.
__________________________________________________________
cls
@ECHO OFF
title Folder Lock (carl-tech.blogspot.com)
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST SecureFolder goto MDSecureFolder
:CONFIRM
echo Are you sure to lock this 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 SecureFolder "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 Your Secure Folder
set/p "pass=>"
if NOT %pass%== password goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" SecureFolder
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDSecureFolder
md SecureFolder
echo SecureFolder created successfully
goto End
:End
__________________________________________________________ - Save the file with an extension name ".bat" for example,
- Click on File>Save as...
- Choose a name such as "lock.bat"- Ensure that the "Save as type" box is turned to "All files" as below. - Double-click on the new batch file (.bat file) you just created, and it will create a new folder "Secure Folder". This is the folder in which you would save the files you want to secure.
- Double click on the file
- Double-click on the file again. It will open a command prompt asking you if you want to save the file.
- Click on press Y and hit the enter key to hide the file. (the new folder would be automatically hidden)
- To view the file again, double-click on the batch file. A new command prompt would be open prompting you to input your password. By default, the password is "password" input this when prompted and the hidden file would be visible again.
N.B. You can change the password by changing the word "password" in blue abive. - Double click the batch file after using the folder to hide it again.
No comments:
Post a Comment