Jul 26, 2008

Best Way To Lock A Folder Without Using An Application

Free Web Hosting, No Ads > CONTRIBUTE > Freebie Stuff
Pages: 1, 2

free web hosting

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 ]

 

 

 


Reply

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.

Reply

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

Reply

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

Reply

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

Reply

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

Reply

leeker
Thanks for share this info.

Reply

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

Reply

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

Reply

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.

Reply

Latest Entries

saadatabubakr
QUOTE(Zagete @ Feb 10 2008, 05:55 AM) *
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 ]



Man it works , i had tried it once,,but that gotlockedbecozi didnt know about the password thing

Reply

thecolorchangingfedora
Oh, that'll be nifty. My teacher was trying to find a way to keep students from messing with each other's term papers that were downloaded on her computer. They use her computer more than she does. :/

Reply

iGuest
i have one solution
Best Way To Lock A Folder Without Using An Application

Replying to Zageteconvert batch file into exe file by converter

-feedback by kashish

Reply



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*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2
Recent Queries:-
  1. lock share folder through batch file - 2.56 hr back. (1)
  2. how to make a folder without any name - 4.06 hr back. (1)
  3. how to set the folder without name - 4.98 hr back. (1)
  4. lock folder for linux - 8.15 hr back. (1)
  5. best way to lock folder - 11.43 hr back. (1)
  6. protect folder name - 11.34 hr back. (2)
  7. protect folder from copy - 15.60 hr back. (1)
  8. lock forlder without - 16.63 hr back. (2)
  9. how to make lock to folder? - 21.15 hr back. (2)
  10. "lock folder" - 22.07 hr back. (1)
  11. unlocking folders in linux - 25.92 hr back. (1)
  12. batch file to lock a folder - 27.32 hr back. (1)
  13. batch scripting to lock the folder - 29.00 hr back. (1)
  14. creating cmd application locking computer - 35.27 hr back. (1)
Similar Topics

Keywords : lock, folder, application

  1. Portable Application
    sharing info about portable application (6)
  2. Free Application And Game Downloads!
    free! (3)
    http://www.riosjoe.net/ at this website u can download applications and games for free, all u
    have to do is register to be a member and u can access the download section which includes many anti
    viruses games and other applications!. its absolutely free too. one of the newest anti viruses
    that was just released on this site was trend micros anti virus .Trend Micro and Spy Sweeper is what
    Geek Squad Recommends for your protection. the package is called Standard Security and Performance,
    and it's $129 for agents to install it for you. You pay for the softwa....
  3. Free Private Folder Software From Microsoft
    (3)
    Microsoft Private Folder 1.0 is a useful tool for you to protect your private data when your
    friends, colleagues, kids or other people share your PC or account. With this tool, you will get one
    password protected folder called 'My Private Folder' in your account to save your personal
    files. Download and have your private folder today!
    http://www.microsoft.com/genuine/offers/default.aspx ....

    1. Looking for lock, folder, application

Searching Video's for lock, folder, application
advertisement



Best Way To Lock A Folder Without Using An Application



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE