Trap17.com :   Feb 9, 2010
Pages: 1, 2, 3, 4

Best Way To Lock A Folder Without Using An Application

free web hosting

Read Latest Entries..: (Post #36) by iGuest on Jan 14 2010, 08:31 PM.
how do u get an option to change the password without editing the batch file all the time, is there a batch code that u can put with the other code to get this look example: Enter password to unlock the folder: *******      (Enter) Would you like to change the password? (Y/and) Y                 (Enter) Enter new password: ******* -reply by jbonnett...
read more.
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion > MODERATED AREA > Freebie Stuff

Best Way To Lock A Folder Without Using An Application

Zagete
Steps:

1- make a new folder ( name it as you like )
2- inside this folder make a (.TXT ) file & copy the following inside it:
CODE
Quote: cls
@ECHO OFF
title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Are you sure you 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 Private "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%== password here goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End


3- After u copy the command go to line ( 23 ) u will find "password here" Change to any password u want.
4- After that, save it as locker.bat (the txt file will change to an application file)
5- Now go back to the folder & u will find a this locker.bat file.
6- Click on it & u will find a new folder called Private.
7- Now copy what u want in it & after that go to locker.bat by clicking it, it will open and ask you if you want to lock your folder? Y/N ?
8- Type Y
9- If you want to UNLOCK your folder, go open locker.bat & type your password and the Private folder will be made visible again.


Tested and working :]

Hide stuff from strangers, lol... biggrin.gif [I wonder what you're gonna hide wink.gif ]

 

 

 


Comment/Reply (w/o sign-up)

rvalkass
Another advantage to Linux. To lock any file or folder so that only you have access, use the following command:
CONSOLE

chmod 0600 filename


Job done tongue.gif

Still, that script is pretty cool to use on a Windows machine.

Comment/Reply (w/o sign-up)

nol
wow thank you, i never knew you could do this, i doubt ill use it, maybe I will, depends, but I never knew you could even lock a folder, but very nice script. Good job on this smile.gif

Comment/Reply (w/o sign-up)

abminara
Looks good. Just tried it, all works. Thanks wink.gif

Comment/Reply (w/o sign-up)

demank
thanks very much.
I like that bat file.
With this locker, i can hidden some file clearly., smile.gif smile.gif

Comment/Reply (w/o sign-up)

CrashCore
Very nice script, though you will definitely have to hide the batch file after you lock the folder because your password is stored inside of it in plain text. tongue.gif Or you could always use one of those programs that compiles a batch file into a .exe. But either way, it wouldn't be too hard to hide it, as long as those using this method are aware that it's necessary for any real level of security.

rvalkass is right though, linux for the win! smile.gif

Comment/Reply (w/o sign-up)

leeker
Thanks for share this info.

Comment/Reply (w/o sign-up)

john_engit
tongue.gif Crack for such Protection(Windows Environment)

1)Cmd to the location of Folder
2)cd <name of folder>
there u go

ur in the Folder

Comment/Reply (w/o sign-up)

Jimmy
QUOTE(john_engit @ Apr 15 2008, 12:45 PM) *
tongue.gif Crack for such Protection(Windows Environment)

1)Cmd to the location of Folder
2)cd <name of folder>
there u go

ur in the Folder

There is no need for that, crashcore pointed out the flaw with this; the password is stored in the bat in plain text!

Is there a way to add md5'ing into this script, such as use a tool to get the md5 of your password and put that in the bat file instead, use it to compare the md5 of any code entered with the "correct" one? smile.gif

Comment/Reply (w/o sign-up)

Csshih
Windows shell commands?
If you enabled: show hidden files and folders and extensions, you can just change the folder name, and then you can access the folder.


it will show up as :
Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}

the ".{21EC2020-3AEA-1069-A2DD-08002B30309D}" after the control panel is a reference to a registry key.

Comment/Reply (w/o sign-up)

Latest Entries

iGuest

how do u get an option to change the password without editing the batch file all the time, is there a batch code that u can put with the other code to get this look example:

Enter password to unlock the folder:

*******      (Enter)

Would you like to change the password? (Y/and)

Y                 (Enter)

Enter new password:

*******

-reply by jbonnett

Comment/Reply (w/o sign-up)

iGuest

just right click the locker.Bat and edit you will see the password easy to hack the password...Blue_ex of batangas philippines


Comment/Reply (w/o sign-up)

iGuest
Windows 7
Best Way To Lock A Folder Without Using An Application

Tested with Windows 7. Doesn't lock with password. Just changes the Private Folder name to the Control panel{numbers} folder and hides it.

I can double click it in this state and see the content.

Any feedback???

Ginetta

-reply by ginetta

Comment/Reply (w/o sign-up)

iGuest
Can make this script better
Best Way To Lock A Folder Without Using An Application

this script it great and help a lot.

you can make it better by adding one more feture in this and that is

1) folder can't be deleted when it is locked..

Thanks

Bilal  

-reply by Bilal

Comment/Reply (w/o sign-up)

iGuest

hey, although this method was good... But easily to open by one another also... Because the password still can let other find out from the locker.Bat... =_="

-reply by pclover

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2, 3, 4



Searching Video's for lock, folder, application
See Also,
advertisement



Best Way To Lock A Folder Without Using An Application

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com



Creative Commons License