Help Community Login:




7 replies [Last post]
Smartmom's picture
From:
Wellington Florida
Smartmom
Banned Member (Way To Go!)
Relationship Status:
Married
Joined: 01/15/2009
Posts: 6398
Drops: -16
Mood: Giggly

So have you ever had the need to lock a folder on your computer? See my computer runs 24/7 and well its great that its password protected it but there are times its on and I'm not in front of it. Like most there are some things that should be private on my computer. Well here is a easy way to lock a folder down on your computer without having to download any program or any application.

How To Lock A Computer Folder

1. First find the folder you would like to lock (for my example I'm going to lock folder "123")

2. Open the folder and then open a notepad (start > All programs > Accessories > Notepad)

  • once you open the notepad paste in the script below
  • on line 23 you will see this "if NOT %pass%== password here goto FAIL"
  • where it says "password here" change that to the password you want to use.
  • Save the .txt file as a locker.bat file (see pic below - you name the file "locker.bat"). Save it in the same folder that you want to lock.

Here is the script to paste into the notepad:

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. Once you save it you will get a prompt (see pic below) and you will see a new folder pop up called "private". Move the files you what to lock into that "private" folder.

4. Once you move your files into the "private" folder (except for the locker file - leave that out) then type in a Y that you would like to lock the folder

5. Once you do that you will see your folder is now hidden. To make it visible again simply click on the "locker" and it will prompt you for the password (for the example my password was "pass123")

This is what it will look like in your documents once the folder is locked:

All you see is the "locker" and nothing else.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <embed> <object> <strike> <caption> <thead> <th> <param> <style> <BGSOUND> <color> <center> <font-size> <script>
  • You may quote other posts using [quote] tags.
  • Filtered words will be replaced with the filtered version of the word.
  • Textual smileys will be replaced with graphical ones.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <csharp>, <css>, <html4strict>, <javascript>, <php>, <vb>, <vbnet>, <xml>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • Lines and paragraphs break automatically.
  • You can use BBCode tags in the text.

More information about formatting options



NOT LOGGED IN

You are NOT logged in

NOTE: You are commenting as an anonymous guest. You will NOT immediately see your comment, but it's there. Please do not try to re-send the same comment. If you'd like to see it immediately, please login or create an account (no worries, it's free).


facebook codes exploits tips tricks Phrozen Crew
All contents ©Copyright GeekDrop 2009-2012
TOS | Privacy Policy