Friday, 27 November 2015

Lock Your Folder

You can lock your folder
1:) Open notepad  type 


@ECHO OFF

if EXIST "MyFilesLocked" goto UNLOCK
if NOT EXIST My_Folder goto MDMYFILES
echo Lock Folder My_Folder ??(Y/N)

set /p "pilihan=>"
if %pilihan%==y goto LOCK
if not %pilihan%==y goto END

:LOCK
ren "My_Folder" MyFilesLocked
attrib +h +s "MyFilesLocked"
cacls "MyFilesLocked" /p everyone:n /e
cls
echo Folder My_Folder Is Locked...
pause
goto End

:UNLOCK
echo To open Folder My_Folder, type your Password and press Enter...
set/p "pass=>"
if NOT %pass%== open goto FAIL
cacls "MyFilesLocked" /p everyone:f /e
attrib -h -s "MyFilesLocked"
ren "MyFilesLocked" My_Folder

cls
echo Now You Can Access Folder My_Folder ...
pause
goto End

:FAIL
echo Wrong Password !!!
pause
goto end

:MDMYFILES
md My_Folder
echo Folder My_Folder Was Created.
echo Put your important files in it,
echo Before you lock the folder My_Folder.

pause
:END
end

 2:)Save as ank.bat and then open it

 3) You will see new folder name as My_Folder

 4:) Now put your impotent file in this folder and to lock this
    folder open ank.bat again  hit enter your folder is lock now
    you cant open it

  5)To unlock it open ank.bat and enter the password
      the passwoed is "open"
                                                 Happy Hacking

No comments:

Post a Comment