Digital Tips n Tricks

  • Home
  • Mobile Tricks
    • Internet
    • Market
    • Stock
  • SmartPhones
    • Dvd
    • Games
    • Software
      • Office
  • Parent Category
    • Child Category 1
      • Sub Child Category 1
      • Sub Child Category 2
      • Sub Child Category 3
    • Child Category 2
    • Child Category 3
    • Child Category 4
  • Featured
  • Health
    • Childcare
    • Doctors
  • Uncategorized

Friday, September 5, 2014

How to Create a Password Protected Folder Without any Software

 Tricks Spot     September 05, 2014     Notepad, Windows     8 comments   



Before you get started you need to create a folder that will store your password protected folder, this is just an ordinary folder and can be located anywhere and named anything.
image
Navigate into your newly created folder and create a new Text Document. This can easily be done from the context menu.
image

Open the document, now paste the following code into the contents of the document:
cls 
@ECHO OFF 
title Folder Private 
if EXIST "HTG Locker" 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 "HTG Locker" 
attrib +h +s "HTG Locker" 
echo Folder locked 
goto End 
:UNLOCK 
echo Enter password to unlock folder 
set/p "pass=>" 
if NOT %pass%== PASSWORD_GOES_HERE goto FAIL 
attrib -h -s "HTG Locker" 
ren "HTG Locker" Private 
echo Folder Unlocked successfully 
goto End 
:FAIL 
echo Invalid password 
goto end 
:MDLOCKER 
md Private 
echo Private created successfully 
goto End 
:End
Change the PASSWORD_GOES_HERE text to the password you want to set. Now go ahead and save the file as locker.bat.
image
Once the file is saved as a batch file you can delete the original text file.
image
Now run your batch file by double clicking on it–the first time you run it, it will create a folder called Private. This is where you can store all your secret things. When you have finished adding all your stuff to the Private folder, run locker.bat again.
image
This time you will be asked if you sure that you want to lock the folder, press the “Y” key and hit enter to lock your folder.
image
You will see that your Private folder quickly disappears.
image
If you run the script yet again, you will prompted for a password.
image
If you enter the same password as you set in the script the Private folder will reappear if you enter the incorrect password the script will just Terminate.
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to XShare to Facebook

Related Posts:

  • Some Cool Notepad Tricks 1. World Trade Center Attack Trick The flight number of the plane that had hit World Trade Center on  (9/11) was Q33NY. Now we call this t… Read More
  • How to Create a Password Protected Folder Without any Software Before you get started you need to create a folder that will store your password protected folder, this is just an ordinary folder and can be loca… Read More
  • How to Hide a File behind an Image Follow the Steps below to hide any file behind an image 1. Select the image to be used for hiding the file. 2. Select the file you want to hide be… Read More
Newer Post Older Post Home

8 comments:

  1. AnonymousFebruary 19, 2015 at 12:54 PM

    This comment has been removed by the author.

    ReplyDelete
    Replies
      Reply
  2. AnonymousFebruary 19, 2015 at 12:55 PM

    Beeeeeauty-ful! Thank you so much! :D

    ReplyDelete
    Replies
    1. Tricks SpotJune 3, 2018 at 10:15 AM

      Feels good that it helps you. Do visit my new blog www.tricksspot.com for some more cool and exciting tricks.

      Delete
      Replies
        Reply
    2. Reply
  3. UnknownFebruary 24, 2015 at 2:44 AM

    after locking the private folder is disappeared but after that if we deletes that locker.bat file then our files residing the private folder also Deleted...

    ReplyDelete
    Replies
    1. UnknownApril 18, 2015 at 11:24 AM

      ya i also have the same issue with this solution

      Delete
      Replies
        Reply
    2. Reply
  4. ArnumbFebruary 25, 2015 at 10:40 AM

    Simplest solution I could find! THANKS :)

    ReplyDelete
    Replies
      Reply
  5. UnknownAugust 26, 2017 at 8:50 AM

    my private file isn't getting dissapear when I press Y

    ReplyDelete
    Replies
      Reply
  6. UnknownAugust 15, 2018 at 12:26 AM

    You can anyway search the folder or content of the folder using the windows search and open it without password. So it is not really locked...

    ReplyDelete
    Replies
      Reply
Add comment
Load more...

Popular Posts

  • How to Create a Password Protected Folder Without any Software
    Before you get started you need to create a folder that will store your password protected folder, this is just an ordinary folder and c...
  • How to Reset the Trial Period of Software to work it Lifetime?
    Want to use the Trial or Evaluation copy of a Software for lifetime? It is possible. You can use the trial software for lifetime. Just Fol...
  • How to use your Mobile as Wireless Mouse and Keyboard
    RemoteDroid turns your phone into a wireless keyboard and mouse with touchpad, using your wireless network. It's an application for p...
  • How to Install and Move Android Apps to SD Card
    Android apps install to the internal storage by default, but you can also set the SD card as your default install location. Follow the bel...

Recent Posts

LightBlog

Categories

Android (21) Apple (9) Cab (2) Chrome (5) Facebook (4) Food (1) Galaxy Tab (11) MAC (2) Macbook (3) Mobile (23) Notepad (3) Taxi (2) VLC (2) Whatsapp (1) Windows (27) YouTube (1)

Unordered List

Pages

  • Home

Text Widget

Blog Archive

Main Menu

  • Home
  • About
  • Contact
Powered by Blogger.

Report Abuse

About Me

Tricks Spot
View my complete profile

testing

A Snapshot is a point in time copy of volume which is used for backup & recovery. A snapshot is used to create a known state of volume ...

Put your ad code here

Total Pageviews

50000

Menu

  • <i class="fa fa-cog"></i> Features
  • Mobile
  • Contact Us

Search This Blog

Social Media Icons

  • twitter
  • facebook
  • gplus
  • instagram
  • rss
  • youtube
  • pinterest

Translate

Social Media Icons

  • twitter
  • facebook
  • gplus
  • instagram
  • rss
  • youtube
  • pinterest

Recent News

Recent Post

Facebook

Comments

Recent

Featured Video

Sample Text

Copyright © 2025 Digital Tips n Tricks | Powered by Blogger
Design by Hardeep Asrani | Blogger Theme by NewBloggerThemes.com