Thursday, 21 May 2015

How to protect folders in Windows 8 / 8.1


This video will show you how to protect folders using Windows 8 / Windows 8.1

Go to the location where you want to create this folder, now create a folder and call it what you want.

Open this newly created folder and right click in the folder, go to new, and create new text document.

Now open this document, if it opens in any other application other than notepad, close this and right click, go to open with and click notepad.

Now we are in the document you will need to copy and paste below: the bit i have highlighted in red is where you will enter your custom password:

cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker 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.
pause
goto CONFIRM
:LOCK
ren Locker "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%==YOUR PASSWORD HERE goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
pause
goto end
:MDLOCKER
md Locker
echo Locker created successfully
pause
goto End
:End

Now that we have copied and pasted this into the document (and created a password that we want) we will go to the menu file, and press save as.

We will change the save as file type to all files, and rename this to hidden.bat

now we can close and delete the original notepad file and we will be left with a bat file. Double click to create the locked folder. now to lock the folder double click the hidden.bat file and it will ask you if you want to lock it, on pressing y and enter the folder will disappear. To bring the folder back double click the hidden.bat file and type your password and your folder will re-open.

No comments:

Post a Comment