Powered by Tech-Attacks

Lock Folders - Without using any Software

Folder Locking is possible without any softwares, instead you just need Notepad or any text - editor you like to use

Have you ever wondered if it is possible to Lock Folder using Notepad ?

Well this method works fine in Windows 8 / 7 /
Vista / Xp and will hopefully work in upper versions of windows.

Note: Please don't use this method if you are unsure what you are doing,
Tech-Attacks is not responsible for any damage caused by use of this, though it won't occur if you follow our steps correctly.

So, here we go:


Open Notepad from your Start -> All Programs -> Accessories -> Notepad


Step 1: Copy and Paste the below code in Notepad
or any text - editor.

 
Code for Folder Lock - Batch File:
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST GJsLocker goto MDLOCKER
: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 GJsLocker "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%==type your password here goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" GJsLocker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid Password
goto end
:MDLOCKER
md GJsLocker
echo Locker created successfully
goto End
:End

Now Save it as " GJsFolderLock.bat ".

Note: use the extension " .bat ".


Step 2 : Now Double Click that new Batch file named GJsFolderLock and it will make a new folder named GJsLocker in the same location
Now put the Data Inside the folder GJsLocker and again Double Click the Batch file to Lock it, this will give you a prompt, just Type y and press Enter and File get locked

Now keep the Batch File named
GJsFolderLock.bat in a different place like your USB Pen Drive so that only you can access the Folder you have locked.
To Unlock the Folder just double click the Batch file again and type y and press Enter.

No comments:

Post a Comment