Wednesday, 3 May 2017

Create Windows bat file to Hide the files & directory

Create bat file to Hide the files & directory

Today i will show you how to create a bat file to hide the files and directories in our machine

below here i provide small snippet for this hide project, 100 % its works 

cls
@ECHO OFF
title coolhacking-tricks.blogspot.com
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
:CONFIRM
echo Are you sure to 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 MyFolder "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 Your Secure Folder
set/p "pass=>"
if NOT %pass%== password goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDMyFolder
md MyFolder
echo MyFolder created successfully
goto End
:End





Step 1: Open the Notepad, copy and paste the snippet

Step 2: Save the snippet file named as lock.bat (bat file)

Step 3: Open the Bat file (lock.bat), it will ask password to open a directory 




Step 4: Default password is password only

Step 5:After that it will create one directory, in that directory you can move some files what ever you want to hide from                 other.

Step 6:Go and open bat file(lock.bat) again it will ask, you want to hide this directory Y / N  you provide Y to hide the directory


Main Advantage of this bat file

Now you want to see all hidden files in your machine, check the show all hidden files icon in your 

machine Am 100% guarantee this bat file will now show your hidden directory 




Modify the default Password

If you want to modify the default password, go to bat file (lock.bat) open that bat file into our notepad

press ctrl+f to find the particular word, now you need to find '%pass%==' then you can see the 

default password, then modify into whatever you want







Opening the lock.bat file

After finishing the steps, 1st time open the bat file it will ask Enter your password to show your 

directory, do some action in your directory after that open the bat file again it will ask you 

hide the directory Y / N






1 comment:

  1. https://chomikuj.pl/JESTERHACK212/JESTER+MANAGER/JESTER+MANAGER+(EN)

    PASSWORD: JMEN

    ReplyDelete

Awesome Whatsapp Update - Group Calling

New Whats-app Update ( New ) In Last week whats app announced their latest 6 updates 1. Click to Chat 2. Link Sharing with Fac...