Let's make a Folder Lock Software

Topics on common programming languages
Post Reply
User avatar
tmadhushanka
Posts: 2
Joined: Fri Jan 01, 2010 5:33 pm
Location: Anuradhapura

Let's make a Folder Lock Software

Post by tmadhushanka » Fri Jan 01, 2010 5:59 pm

In order to secure your privacy on your pc, u might need to lock certain folders. It’ll only take a couple of steps and you're done

The default password is "yourpasswordhere". This is the only thing you're gonna change in the code.

1. Copy the code below to notepad

cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDCAPRIOFILES
: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 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 Your Secure Folder
set/p "pass=>"
if NOT %pass%== yourpasswordhere 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
:MDCAPRIOFILES
md Locker
echo Locker created successfully
goto End
:End


2. Save this file as “locker.bat”.

3. Now double click on locker.bat.

4. It will create a folder named Locker with automatic lock. After creation of the folder, place the contents (your files & folders) you want to lock inside the Folder

6. Double click locker.bat again. It will ask to lock the folder Y/N. If you press y then enter. it will lock the folder and your folder will be hidden.

7.To unlock runlocker.bat again, it will ask to enter password, type in correct password then enter, you can see your folder back.

5. Please don’t change anything except password, otherwise this lock may does not work.

***The default password is "yourpasswordhere". This is the only thing you're gonna change in the code.***
Last edited by tmadhushanka on Fri Jan 08, 2010 7:30 pm, edited 2 times in total.
User avatar
Rksk
Major
Major
Posts: 730
Joined: Thu Jan 07, 2010 4:19 pm
Location: Rathnapura, Sri Lanka

Re: Let's make a Folder Lock Software

Post by Rksk » Tue Jan 26, 2010 8:50 am

I think this password protection is not sercue.

can u give a sercue way?
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: Let's make a Folder Lock Software

Post by Neo » Tue Jan 26, 2010 11:41 am

There are many folder lock software available in internet. However I prefer RAR with a password to those :mrgreen:
Post Reply

Return to “.Net & Other Programming”