BATCH PROGRAMMING

LOCK FOLDER USING BATCH PROGRAMMING

folder-lock

Hello guys in my previous batch programming tutorial we have created a most dangerous virus which destroyed the windows system, and today I am going to share one another batch programming tutorial to lock folder without any software. This will helps a lot to hide your datas. Now follows some simple steps…    

 

Step 1 :- open your notepad and paste the following code and then  save file  with .bat  extension.

Here I save my file with lock.bat name.

 

cls

@ECHO OFF

title www.ways2hack.com

if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK

if NOT EXIST ways2hack goto MDways2hack

: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 ways2hack “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%== mypassword goto FAIL

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

ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” ways2hack

echo Folder Unlocked successfully

goto End

:FAIL

echo Invalid password

goto end

:MDways2hack

md ways2hack

echo ways2hack created successfully

goto End

:End

 1

Step 2 :- change mypassword with its your own password.

Step 3 :- Now double click on lock.bat, after clicking it will generate a new folder with a name ways2hack.

2

3

Step 4 :- Now past all the data’s in the ways2hack folder, which you want to be password protected.

Step 5 :- After pasting all data’s, now again double click on lock.bat file then a command prompt is open and it will ask are you sure want to lock this folder, then you Y and hit enter.

 4

5

Step 6 :- after doing step 5, refresh that drive then you see the ways2hack folder is completely hide from that location.

Step 7 :- then if you again want to visible the folder, then again double click on lock.bat file and at that time it will ask for a password to visible the folder at that time you put your password and hit enter.

 6

Untitled-8 copy

Note :-  Guys as we know that .bat file is editable file, so any user easily find your password, that’s why I advised please keep .bat file in C:\ drive of any location so that no one can easily find it.

2 thoughts on “LOCK FOLDER USING BATCH PROGRAMMING

  1. I see your page is in the same niche like my blog. Do you allow
    guest posting? I can write high quality & unique articles for you.
    Let me know if you are interested.

Leave a Reply

Your email address will not be published. Required fields are marked *