Translate

Hiding files using batch file in windows

Welcome to 1M-ideasRelated image

So, How are you dear viewers, here I take a simple hack to create a lockable folder for windows 10 home edition, If you are using windows 10 home edition or you want to lock and hide your private files in windows OS, then here is a wonder method.

You have to create a program file and a folder correspondingly your program in that directory where the program file has to save by you.

but there is also some loopholes on this trick which will discuss later.

but follow the process.

open the file manager and enter in any folder or directory where you want to hide files, now using ctrl+shift+N, create a folder named "Locker" in the current directory and after that create a file  with any valid name using the option given below
right click>>new>>text document
now give the name of your document a replace Extention txt with bat
after that edit this and copy-paste the program which is given below, and you have to replace a bold red text which is mention in this coding with your desired password.

note:- you can take any name of folder instead of Locker, but You to replace all Locker word with your desired name in the program.

after this process whenever you double click on bat file it open cmd and ask to lock folder press y and folder will hide and after that when you again click it this will ask password to sh it again, so enter your password and you will find your folder again.

code is here



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 Are you sure u want to Lock the 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 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 folder

set/p "pass=>"

if NOT %pass%==YOUR-PASSWORD-HERE goto FAIL

attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker

echo Folder Unlocked successfully

goto End

:FAIL

echo Invalid password

goto end

:MDLOCKER

md Locker

echo Locker created successfully

goto End

:End



Problem:- It actually works to hide your folder only, it does not encrypt folder, so if you use cmd attrib -h -s in that directory it will show you your hidden files in a folder which is created by this program. You can also use show hidden file option in file manager instead of cmd to show hidden folder.  but it is overall good option to impress friends and hide files from them.


Post a Comment

0 Comments