Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
Sell your Land, House on idamata.lk for FREE
sajith.xp.pk
Updated:
Thursday at 9:03 AM
Handmade Character Soft Toys
anil1961
Updated:
Tuesday at 2:11 PM
Bodim.lk out now !
Manoj Suranga Bandara
Updated:
Sunday at 3:05 AM
Power Lifting Lever Belt
SkullVamp
Updated:
Jun 13, 2026
Ad icon
port.lk Domain for sale
Lankan-Tech
Updated:
Jun 13, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Health & Lifestyle
How to create a Password Protected Folder in Windows
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="nmcjanaka" data-source="post: 17627366" data-attributes="member: 512114"><p><span style="font-family: 'Symbol'">·</span>[FONT=&quot] Create a new folder and name it whatever you would like. [/FONT]</p><p> [FONT=&quot]</p><p>[/FONT]</p><p> <span style="font-family: 'Symbol'">·</span>[FONT=&quot] Open the folder, right-click on a blank area in it, then select<span style="color: Red"> <strong>New</strong> -> <strong>Text Document</strong></span> from the pop-up menu. [/FONT]</p><p> [FONT=&quot]</p><p>[/FONT]</p><p> <span style="font-family: 'Symbol'">·</span>[FONT=&quot] Open the text file you just created by double-clicking it and copy/paste in the following text: [/FONT]</p><p> [FONT=&quot]cls</p><p>@ECHO OFF</p><p>title Folder Private</p><p>if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK</p><p>if NOT EXIST Private goto MDLOCKER</p><p>:CONFIRM</p><p>echo Are you sure you want to lock the folder(Y/N)</p><p>set/p "cho=>"</p><p>if %cho%==Y goto LOCK</p><p>if %cho%==y goto LOCK</p><p>if %cho%==n goto END</p><p>if %cho%==N goto END</p><p>echo Invalid choice.</p><p>goto CONFIRM</p><p>:LOCK</p><p>ren Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"</p><p>attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"</p><p>echo Folder locked</p><p>goto End</p><p>:UNLOCK</p><p>echo Enter password to unlock folder</p><p>set/p "pass=>"</p><p>if NOT %pass%== <span style="color: Red"><strong>PASSWORD_GOES_HERE</strong></span> goto FAIL</p><p>attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"</p><p>ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private</p><p>echo Folder Unlocked successfully</p><p>goto End</p><p>:FAIL</p><p>echo Invalid password</p><p>goto end</p><p>:MDLOCKER</p><p>md Private</p><p>echo Private created successfully</p><p>goto End</p><p>:End [/FONT]</p><p> <span style="font-family: 'Symbol'">·</span>[FONT=&quot] In the above code, replace the key <strong><span style="color: red">PASSWORD_GOES_HERE</span></strong> with the password you want to use to unlock the folder. For example if you want the password to be <span style="color: red">123456</span>, the line should look like: [/FONT]</p><p> [FONT=&quot]if NOT %pass%== <span style="color: red">123456</span> goto FAIL [/FONT]</p><p> <span style="font-family: 'Symbol'">·</span>[FONT=&quot] Save your new file in the <strong>.bat</strong> format with the complete file name being <strong>locker.bat</strong>. To do this, <strong>make sure</strong> to change the <strong>Save as type:</strong> to <strong>All Files (*.*)</strong>. [/FONT]</p><p> <u><span style="color: blue">[FONT=&quot]</span></u></p><p><u><span style="color: blue">[/FONT]</span></u></p><p> <span style="font-family: 'Symbol'">·</span>[FONT=&quot] In the folder you created back in Step #1, double click the <strong>locker.bat</strong> file and there will now be a new folder named <strong>Private</strong> where you can put anything you want. [/FONT]</p><p> [FONT=&quot]</p><p>[/FONT]</p><p> <span style="font-family: 'Symbol'">·</span>[FONT=&quot] Upon exiting, double click the <strong>locker.bat</strong> file again. It will prompt you to answer whether you want to lock your folder or not. Press <strong>Y</strong> and the private folder will disappear. [/FONT]</p><p> <u><span style="color: blue">[FONT=&quot]</span></u></p><p><u><span style="color: blue">[/FONT]</span></u></p><p> <span style="font-family: 'Symbol'">·</span>[FONT=&quot] In order to retrieve the Private folder, all you have to do is double click the <strong>locker.bat</strong> file and enter the password which you set in Step #4 and the folder will appear again for you to access. </p><p>[/FONT]</p><p>[FONT=&quot]<a href="http://tecnewslanka.blogspot.com/" target="_blank">click more</a></p><p>[/FONT]</p><p> <u><span style="color: blue">[FONT=&quot]</span></u></p><p> <u><span style="color: blue"></span></u></p><p> <u><span style="color: blue">[/FONT]</span></u></p></blockquote><p></p>
[QUOTE="nmcjanaka, post: 17627366, member: 512114"] [FONT=Symbol]·[/FONT][FONT="] Create a new folder and name it whatever you would like. [/FONT] [FONT="] [/FONT] [FONT=Symbol]·[/FONT][FONT="] Open the folder, right-click on a blank area in it, then select[COLOR=Red] [B]New[/B] -> [B]Text Document[/B][/COLOR] from the pop-up menu. [/FONT] [FONT="] [/FONT] [FONT=Symbol]·[/FONT][FONT="] Open the text file you just created by double-clicking it and copy/paste in the following text: [/FONT] [FONT="]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%== [COLOR=Red][B]PASSWORD_GOES_HERE[/B][/COLOR] 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 [/FONT] [FONT=Symbol]·[/FONT][FONT="] In the above code, replace the key [B][COLOR=red]PASSWORD_GOES_HERE[/COLOR][/B] with the password you want to use to unlock the folder. For example if you want the password to be [COLOR=red]123456[/COLOR], the line should look like: [/FONT] [FONT="]if NOT %pass%== [COLOR=red]123456[/COLOR] goto FAIL [/FONT] [FONT=Symbol]·[/FONT][FONT="] Save your new file in the [B].bat[/B] format with the complete file name being [B]locker.bat[/B]. To do this, [B]make sure[/B] to change the [B]Save as type:[/B] to [B]All Files (*.*)[/B]. [/FONT] [U][COLOR=blue][FONT="] [/FONT][/COLOR][/U] [FONT=Symbol]·[/FONT][FONT="] In the folder you created back in Step #1, double click the [B]locker.bat[/B] file and there will now be a new folder named [B]Private[/B] where you can put anything you want. [/FONT] [FONT="] [/FONT] [FONT=Symbol]·[/FONT][FONT="] Upon exiting, double click the [B]locker.bat[/B] file again. It will prompt you to answer whether you want to lock your folder or not. Press [B]Y[/B] and the private folder will disappear. [/FONT] [U][COLOR=blue][FONT="] [/FONT][/COLOR][/U] [FONT=Symbol]·[/FONT][FONT="] In order to retrieve the Private folder, all you have to do is double click the [B]locker.bat[/B] file and enter the password which you set in Step #4 and the folder will appear again for you to access. [/FONT] [FONT="][URL="http://tecnewslanka.blogspot.com/"]click more[/URL] [/FONT] [U][COLOR=blue][FONT="] [/FONT][/COLOR][/U] [/QUOTE]
Insert quotes…
Verification
Awruddata maasa keeyada?
Post reply
Top
Bottom