Sunday, 20 March 2016

Locking Files In windows

Steps are given below::

      Here  I am Going to Explain with Demo then U will definitely "LOCK YOUR PESONAL FILES"

1-->First create a Notepad File Of any Name.

2-->Then Copy below code.

Code::  
  1. cls 
  2. @ECHO OFF 
  3. title Folder Private 
  4. if EXIST "HTG Locker" goto UNLOCK 
  5. if NOT EXIST Private goto MDLOCKER 
  6. :CONFIRM 
  7. echo Heyy Buddy I Am ROBOPRO!! want to Lock your File?(Y/N) 
  8. set/p "cho=>" 
  9. if %cho%==Y goto LOCK 
  10. if %cho%==y goto LOCK 
  11. if %cho%==n goto END 
  12. if %cho%==N goto END 
  13. echo Invalid choice. 
  14. goto CONFIRM 
  15. :LOCK 
  16. ren Private "HTG Locker" 
  17. attrib +h +s "HTG Locker" 
  18. echo Folder locked 
  19. goto End 
  20. :UNLOCK 
  21. echo Enter password to unlock folder 
  22. set/p "pass=>" 
  23. if NOT %pass%== jjjjjdj6098 goto FAIL 
  24. attrib -h -s "HTG Locker" 
  25. ren "HTG Locker" Private 
  26. echo Folder Unlocked successfully 
  27. goto End 
  28. :FAIL 
  29. echo Invalid password 
  30. goto end 
  31. :MDLOCKER 
  32. md Private 
  33. echo Private created successfully 
  34. goto End 
  35. :End
3-->Paste this above Code into that Notepad file.

4-->Save as that Folder with ".bat" Extension
       and then save as "ALL FILES"  then press              save.

5-->Here one .bat file is created open that file.

6-->Run that .bat file.

7-->Give Your appropriate password to lock your          file.

8-->Then One private folder is created You can            Move your personal Data in that Folder.

9-->After Moving that files in to the private Folder        Run that ".bat" file .

10-->Then one cmd screen will open and then               press y or Y to lock your file then if you are           texting y then the private folder immideately           Hide.

11-->If you want that file open bat file to and give          the password and you will get your personal          data from Private.

12-->If you entered wrong password in tmd then            cmd screen automatically close.

13-->Enjoy this Fun..