Some Steps for keeping data safe as below:
1. click start button -> All Program ->Accessory -> Notepad
2.write code in Notepad as below code:
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 "Do you want to lock Folder named Locker? 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
set/p "pa=>"
if NOT %pa%==smart goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder unlocked
goto End
:FAIL
echo Good
goto end
:MDLOCKER
md Locker
echo Locker created
goto End
:End
3. Save as bat file with any name as your want (filename.bat)
4.open this file to create a folder name "Locker"
5. open this file again to hide folder Locker(copy file and folder to this folder to lock) -> type y or Y
* if you type n or N , command prompt will exit and folder Locker will not hide
* if you type other letter , text message will show that "Invalid Choice..."
folder Locker is now hidden
7.open this file to show folder Locker ->type smart
* if you type other letter,Command prompt will exit and folder will not show
folder Locker is now shown
***Note: You can change Folder Name "Locker" to other name, text Message in command prompt "Do you want to lock Folder named Locker? y/n", answer "y/Y,n/N", text Message "Invalid choice.",text Message "Enter Password to Unlock" & password "smart" in code above.
No comments:
Post a Comment