HOWTIvITY

if you got any suggestions put in a comment please and don't forget to Subscribe

join this site

Monday, February 27, 2012

How to Make Undeletable and Inaccessible Folder (Windows)

have you ever lost data and you were upset about here is a couple solution may help :
1st. is to make a password for a specific folder and keep the important or secret stuff in
to make a password you need a software rather than download one or buying it make
your own now am gonna teach you how to.
actually to be clear this is not a program it is a batch file so you can either download it
from here http://www.mediafire.com/?qaf650hzi7a4ixb or copy the source
code below and paste it in notepad and replace YOURPASSWORD with your password
then save it in bat extension like this Locker . BAT





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.
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%==YOURPASSWORD 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
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End

Now open it and it will automatically make a new folder called Locker but what ever in this folder then open the batch file again you will get a message like this one Are you sure u want to Lock the folder(Y/N)
type y and click return <Enter> now when ever you want to access your files again open the batch file then type your password that you but in place of YOURPASSWORD and it will open.

2nd. is to user cacls.exe to use it lunch the CMD by opening run and type in cmd then click OK . or go traditional open start menu >> All Programs >> Accessories >> Command Prompt.
after doing that go to the directory which the folder is in by typing the name of directory followed by a colon < : > and click return <Enter>
Ex. D:
note : the folder should be in the root directory not in sub one 
Ex. D:\Private\test\MOVIES X
D:\Private                                \ /
next type in cacls Private /e /c /d %username%
now when ever anyone trying to open the folder or erase it this message will pop up


to open your folder open CMD and type




and it will open

Thank you for reading.

                                                                                                            - Mohammed Zahran -

No comments:

Post a Comment

back to top