{"id":286,"date":"2019-01-28T18:02:40","date_gmt":"2019-01-28T18:02:40","guid":{"rendered":"https:\/\/t3x.co.uk\/?p=286"},"modified":"2020-03-10T10:25:24","modified_gmt":"2020-03-10T10:25:24","slug":"password-protecting-a-folder","status":"publish","type":"post","link":"https:\/\/t3x.co.uk\/?p=286","title":{"rendered":"Password Protecting a Folder"},"content":{"rendered":"\n<p>This basic security feature allows you to protect sensitive files from the casual snooper.  For example, hiding your Christmas present list from the family.  It won&#8217;t keep out the tech savy but it is better that nothing.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>This tutorial was based on information in a Microsoft blog.<\/p>\n\n\n\n<p>First create a folder for your sensitive files and add a text file.  This will become a batch file a little later.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"665\" height=\"676\" src=\"https:\/\/t3x.co.uk\/wp-content\/uploads\/2019\/01\/1.jpg\" alt=\"Create folder and text file\" class=\"wp-image-287\" srcset=\"https:\/\/t3x.co.uk\/wp-content\/uploads\/2019\/01\/1.jpg 665w, https:\/\/t3x.co.uk\/wp-content\/uploads\/2019\/01\/1-295x300.jpg 295w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><\/figure>\n\n\n\n<p>Now add the batch program text:<\/p>\n\n\n\n<p>REM === Protect Folder ===<br>\nREM === Change colours ===<br>\ncolor 0A<br>\ncls<br>\n@ECHO OFF<br>\nREM === Set window title ===<br>\nTITLE Protect Folder<br>\nREM === Test for existing folder ===<br>\nif EXIST &#8220;Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}&#8221; goto UNLOCK<br>\nif NOT EXIST Locker goto MDLOCKER<br>\n:CONFIRM<br>\nREM === Select option ===<br>\nECHO Protect the folder(Y\/N)<br>\nset\/p &#8220;opt=&gt;&#8221;<br>\nif %opt%==Y goto LOCK<br>\nif %opt%==y goto LOCK<br>\nif %opt%==n goto END<br>\nif %opt%==N goto END<br>\nECHO Invalid option<br>\ngoto CONFIRM<br>\nREM === Protect the folder ===<br>\n:LOCK<br>\nren Locker &#8220;Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}&#8221;<br>\nattrib +h +s &#8220;Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}&#8221;<br>\nECHO Folder protected<br>\nECHO Run again to unprotect<br>\ngoto END<br>\nREM === Unprotect the folder ===<br>\n:UNLOCK<br>\nECHO Enter password to Unlock folder<br>\nset\/p &#8220;pass=&gt;&#8221;<br>\nREM === Replace PASSWORD with your password ===<br>\nif NOT %pass%==PASSWORD goto FAIL<br>\nattrib -h -s &#8220;Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}&#8221;<br>\nren &#8220;Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}&#8221; Locker<br>\nECHO Folder Unprotected<br>\nECHO Add \/ edit sensitive files and run again to protect<br>\ngoto End<br>\nREM === Wrong Password ===<br>\n:FAIL<br>\nECHO Invalid password<br>\ngoto END<br>\nREM === Create Locker Folder ===<br>\n:MDLOCKER<br>\nREM === Change folder name if you like ===<br>\nmd Locker<br>\nECHO Locker created successfully<br>\nECHO Put sensitive files into it and run again to protect<br>\n:END<br>\nPAUSE<\/p>\n\n\n\n<p>Change the password if required, it can be found on this line.<\/p>\n\n\n\n<p> <strong>if NOT %pass%==PASSWORD goto FAIL <\/strong><\/p>\n\n\n\n<p>Save the batch file with a name of your choice.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"826\" height=\"518\" src=\"https:\/\/t3x.co.uk\/wp-content\/uploads\/2019\/01\/2.jpg\" alt=\"\" class=\"wp-image-288\" srcset=\"https:\/\/t3x.co.uk\/wp-content\/uploads\/2019\/01\/2.jpg 826w, https:\/\/t3x.co.uk\/wp-content\/uploads\/2019\/01\/2-300x188.jpg 300w, https:\/\/t3x.co.uk\/wp-content\/uploads\/2019\/01\/2-768x482.jpg 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>The first run of the batch file should create a folder called Locker within your folder.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"588\" height=\"357\" src=\"https:\/\/t3x.co.uk\/wp-content\/uploads\/2019\/01\/3.jpg\" alt=\"\" class=\"wp-image-289\" srcset=\"https:\/\/t3x.co.uk\/wp-content\/uploads\/2019\/01\/3.jpg 588w, https:\/\/t3x.co.uk\/wp-content\/uploads\/2019\/01\/3-300x182.jpg 300w\" sizes=\"auto, (max-width: 588px) 100vw, 588px\" \/><\/figure>\n\n\n\n<p>Move your sensitive files into the Locker folder.  The next run will ask if you want to protect the Folder<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"593\" height=\"360\" src=\"https:\/\/t3x.co.uk\/wp-content\/uploads\/2019\/01\/4.jpg\" alt=\"\" class=\"wp-image-290\" srcset=\"https:\/\/t3x.co.uk\/wp-content\/uploads\/2019\/01\/4.jpg 593w, https:\/\/t3x.co.uk\/wp-content\/uploads\/2019\/01\/4-300x182.jpg 300w\" sizes=\"auto, (max-width: 593px) 100vw, 593px\" \/><\/figure>\n\n\n\n<p>Typing Y or y will protect the folder.  In other word it will disapear from the containing folder. When you need the files again the next run will unprotect the folder.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"582\" height=\"372\" src=\"https:\/\/t3x.co.uk\/wp-content\/uploads\/2019\/01\/5.jpg\" alt=\"\" class=\"wp-image-291\" srcset=\"https:\/\/t3x.co.uk\/wp-content\/uploads\/2019\/01\/5.jpg 582w, https:\/\/t3x.co.uk\/wp-content\/uploads\/2019\/01\/5-300x192.jpg 300w\" sizes=\"auto, (max-width: 582px) 100vw, 582px\" \/><\/figure>\n\n\n\n<p>The batch file can be edited and the password is in plain text so it isn&#8217;t secure to leave it in the containing folder. You could move it to a USB stick or use a BAT to EXE convertor program.  Or even write your own program.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<a href=\"https:\/\/social.microsoft.com\/Forums\/en-US\/9a0f17af-928e-4732-a3ba-90d54ed961ea\/lock-folder-without-any-software?forum=softwareresources\">Link to original Microsoft blog<\/a>\n","protected":false},"excerpt":{"rendered":"<p>This basic security feature allows you to protect sensitive files from the casual snooper. For example, hiding your Christmas present list from the family. It won&#8217;t keep out the tech savy but it is better that nothing.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[14,16],"tags":[46],"class_list":["post-286","post","type-post","status-publish","format-standard","hentry","category-tutorials","category-windows","tag-security"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3XT9c-4C","_links":{"self":[{"href":"https:\/\/t3x.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/t3x.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/t3x.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/t3x.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/t3x.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=286"}],"version-history":[{"count":2,"href":"https:\/\/t3x.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/286\/revisions"}],"predecessor-version":[{"id":293,"href":"https:\/\/t3x.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/286\/revisions\/293"}],"wp:attachment":[{"href":"https:\/\/t3x.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/t3x.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/t3x.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}