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::
- cls
- @ECHO OFF
- title Folder Private
- if EXIST "HTG Locker" goto UNLOCK
- if NOT EXIST Private goto MDLOCKER
- :CONFIRM
- echo Heyy Buddy I Am ROBOPRO!! want to Lock your File?(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 Private "HTG Locker"
- attrib +h +s "HTG Locker"
- echo Folder locked
- goto End
- :UNLOCK
- echo Enter password to unlock folder
- set/p "pass=>"
- if NOT %pass%== jjjjjdj6098 goto FAIL
- attrib -h -s "HTG Locker"
- ren "HTG Locker" Private
- echo Folder Unlocked successfully
- goto End
- :FAIL
- echo Invalid password
- goto end
- :MDLOCKER
- md Private
- echo Private created successfully
- goto End
- :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..