Sometimes you need some privacy for your files in windows and just hiding it is not a good idea!
You may need a protected place which can't be accessed by others. Here we come with a tutorial to make a locked or protected folder in windows using notepad.
Actually you're about to create a batch file, which will let you to do so.
So lets start!
Double click on tGlocker.bat and and a folder named LockedFolder will be created in same directory.
Then move your files and folders to be secured in LockedFolder and afterwards double click on tGlocker.bat and press Y to confirm locking it.
You have sucessfully locked your private files!
You may need a protected place which can't be accessed by others. Here we come with a tutorial to make a locked or protected folder in windows using notepad.
Actually you're about to create a batch file, which will let you to do so.
So lets start!
Step 1:
Open notepad and paste the following code in it.cls
@ECHO OFF
title Folder LockedFolder
if EXIST "tG Locker" goto UNLOCK
if NOT EXIST LockedFolder goto tGlocker
:CONFIRM
echo Do you really wanna lock this 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 LockedFolder "tG Locker"
attrib +h +s "tG Locker"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock if you are folder owner
set/p "pass=>"
if NOT %pass%== techgoogles goto FAIL
attrib -h -s "tG Locker"
ren "tG Locker" LockedFolder
echo Folder Unlocked successfully
goto End
:FAIL
echo Dont try to access others data
goto End
:tGlocker
md LockedFolder
echo LockedFolder created successfully
goto End
:End
Set your password by editing highlighted part of code by yours and save it as tGlocker.batStep 2:
Now place that batch file (tGlocker.bat) to the location where you want to create a protected folder.Double click on tGlocker.bat and and a folder named LockedFolder will be created in same directory.
Then move your files and folders to be secured in LockedFolder and afterwards double click on tGlocker.bat and press Y to confirm locking it.
You have sucessfully locked your private files!
0 comments:
Post a Comment