SlideShare a Scribd company logo
1 of 12
3 w a y s t o e n c r y p t f i l e s a n d f o l d e r s i n w i n d o w s 1 0
How to Password Protect a Folder
in Windows10
1. Lock a folder in Windows 10 Pro using folder encryption
2. Password protect a folder with 7-Zip
3. Password protect a folder using a batch file
CONTENTS
Lock a folder in Windows 10 Pro
using folder encryption
If you’re running Windows 10 Pro, there is a built-in protection system,
which locks a file to your account. That way, however, anyone using your
PC and account would still have access.
How to Use Windows 10 Pro Folder Encryption
4
Step 1: Do a right-click on the folder you want to lock, and then click on Properties.
Step 2: Click Advanced.
Step 3: Check the box next to Encrypt contents to secure data and click OK.
Step 4: Click Apply and when prompted, choose whether you want all folders within that
directory to be encrypted, or merely the top-level one. When you’ve decided, click OK.
Password protect a folder with 7-Zip
For most Windows users, adding a password to a folder requires a third-party
archiving utility or some form of compression software. Options include 7-Zip
and WinZip. They do a great job of password-protecting your important data.
How to create a password protected Zip file in Windows 10
6
Step 1: Navigate to the 7-Zip or WinZip download page and select the right download for
you. Install and run it.
Step 2: Locate the folder you wish to password protect, right-click and select: WinZip or 7-
Zip > Add to archive.
Step 3: Then, enter and re-enter your desired password for the folder in the text fields
located on the right-hand side of the window. Click the OK button when finished and allow
the utility to create a compressed.
See Also: How to Create a Password Protected ZIP File with WinZip or 7-Zip
Password protect a folder using a batch file
How to Password protect a folder using a batch file
8
1. Open Notepad.
2. Copy the following codes and paste them into Notepad.
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u 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 Locker "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=>"
3. Change the password.
9
Locate if NOT “%pass%==your_password” goto FAIL in the code that you just pasted. And then
change your password to the password of your choice.
10
4. Save the file and choose a name a ensure that you add a .bat extension to your file. Also, make sure
that the encoding type is ANSI. Click on Save.
11
5. Double click on the BAT file that you just created.
6. Run the batch file by double-clicking it. You will see a folder with the name same as the BAT file.
7. Move the files and folders that you think are sensitive to the same folder which including the .bat file.
8 Double-click on the .bat file again. A Command Prompt will open and asking if you want to lock the
folder. Type Y then press enter.
9. Done. No one can access your folder without the password.
That’s All
Read More:
https://www.isumsoft.com/computer/how-to-password-protect-a-folder-without-any-software.html

More Related Content

What's hot

Web Browser ! Batra Computer Centre
Web Browser ! Batra Computer CentreWeb Browser ! Batra Computer Centre
Web Browser ! Batra Computer Centrejatin batra
 
Firefox Extension Development
Firefox Extension DevelopmentFirefox Extension Development
Firefox Extension DevelopmentBob Chao
 
Cookiejacking2011 final
Cookiejacking2011 finalCookiejacking2011 final
Cookiejacking2011 finalsebjoh
 

What's hot (9)

Cookie
CookieCookie
Cookie
 
Internet cookies
Internet cookiesInternet cookies
Internet cookies
 
Browser wars
Browser warsBrowser wars
Browser wars
 
Browser war
Browser warBrowser war
Browser war
 
Web Browser ! Batra Computer Centre
Web Browser ! Batra Computer CentreWeb Browser ! Batra Computer Centre
Web Browser ! Batra Computer Centre
 
Sw2 b11
Sw2 b11Sw2 b11
Sw2 b11
 
Firefox Extension Development
Firefox Extension DevelopmentFirefox Extension Development
Firefox Extension Development
 
Week11
Week11Week11
Week11
 
Cookiejacking2011 final
Cookiejacking2011 finalCookiejacking2011 final
Cookiejacking2011 final
 

Similar to How to Password Protect a Folder in Windows10

18IF004_CNS.docx
18IF004_CNS.docx18IF004_CNS.docx
18IF004_CNS.docxRajAmbere1
 
Coc 4 backup and restore
Coc 4 backup and restoreCoc 4 backup and restore
Coc 4 backup and restoreDanilo Anos
 
Secure your folder with password/without any software
Secure your folder with password/without any softwareSecure your folder with password/without any software
Secure your folder with password/without any softwareMohd Sajjad
 
Windows 10 backup options
Windows 10 backup optionsWindows 10 backup options
Windows 10 backup optionsssuser1eca7d
 
2022 fixed cant read from source file or disk error
2022 fixed cant read from source file or disk error2022 fixed cant read from source file or disk error
2022 fixed cant read from source file or disk errorZoey Chen
 
synology-backup-windows-11.docx
synology-backup-windows-11.docxsynology-backup-windows-11.docx
synology-backup-windows-11.docxssuser1eca7d
 
Backup and restore 1
Backup and restore 1Backup and restore 1
Backup and restore 1Navdeep Brar
 
Operating system security
Operating system securityOperating system security
Operating system securityRachel Jeewa
 
How to Troubleshoot QuickBooks Error 1303?
How to Troubleshoot QuickBooks Error 1303?How to Troubleshoot QuickBooks Error 1303?
How to Troubleshoot QuickBooks Error 1303?nickmosan
 
Hosts setup
Hosts setupHosts setup
Hosts setupdragoj
 
How to back up data
How to back up dataHow to back up data
How to back up dataliberalmanav
 
How to use WinRAR
How to use WinRARHow to use WinRAR
How to use WinRARmama_maria
 

Similar to How to Password Protect a Folder in Windows10 (20)

Protect Folders without using any Software
Protect Folders without using any SoftwareProtect Folders without using any Software
Protect Folders without using any Software
 
18IF004_CNS.docx
18IF004_CNS.docx18IF004_CNS.docx
18IF004_CNS.docx
 
Coc 4 backup and restore
Coc 4 backup and restoreCoc 4 backup and restore
Coc 4 backup and restore
 
Secure your folder with password/without any software
Secure your folder with password/without any softwareSecure your folder with password/without any software
Secure your folder with password/without any software
 
Hosts setup
Hosts setupHosts setup
Hosts setup
 
Windows 10 backup options
Windows 10 backup optionsWindows 10 backup options
Windows 10 backup options
 
windows system tool (1).pdf
windows system tool (1).pdfwindows system tool (1).pdf
windows system tool (1).pdf
 
Truecrypt
TruecryptTruecrypt
Truecrypt
 
2022 fixed cant read from source file or disk error
2022 fixed cant read from source file or disk error2022 fixed cant read from source file or disk error
2022 fixed cant read from source file or disk error
 
synology-backup-windows-11.docx
synology-backup-windows-11.docxsynology-backup-windows-11.docx
synology-backup-windows-11.docx
 
Backup and restore 1
Backup and restore 1Backup and restore 1
Backup and restore 1
 
Operating system security
Operating system securityOperating system security
Operating system security
 
WORKING WITH WINDOWS
WORKING WITH WINDOWSWORKING WITH WINDOWS
WORKING WITH WINDOWS
 
How to Troubleshoot QuickBooks Error 1303?
How to Troubleshoot QuickBooks Error 1303?How to Troubleshoot QuickBooks Error 1303?
How to Troubleshoot QuickBooks Error 1303?
 
Hosts setup
Hosts setupHosts setup
Hosts setup
 
File Management
File ManagementFile Management
File Management
 
How to back up data
How to back up dataHow to back up data
How to back up data
 
Comodo presentation
Comodo presentationComodo presentation
Comodo presentation
 
Win7guide
Win7guideWin7guide
Win7guide
 
How to use WinRAR
How to use WinRARHow to use WinRAR
How to use WinRAR
 

More from moli he

How to Optimize Windows 10 for Gaming and Productivity
How to Optimize Windows 10 for Gaming and ProductivityHow to Optimize Windows 10 for Gaming and Productivity
How to Optimize Windows 10 for Gaming and Productivitymoli he
 
How to Free up Space on Mac - 12 Ways to Clear Disk Space on Mac
How to Free up Space on Mac - 12 Ways to Clear Disk Space on MacHow to Free up Space on Mac - 12 Ways to Clear Disk Space on Mac
How to Free up Space on Mac - 12 Ways to Clear Disk Space on Macmoli he
 
Forgot restrictions passcode - How to Reset Restrictions Passcode on iPhone
Forgot restrictions passcode - How to Reset Restrictions Passcode on iPhoneForgot restrictions passcode - How to Reset Restrictions Passcode on iPhone
Forgot restrictions passcode - How to Reset Restrictions Passcode on iPhonemoli he
 
Move Windows 10 Installation to SSD without Reinstalling without Data Loss
Move Windows 10 Installation to SSD without Reinstalling without Data LossMove Windows 10 Installation to SSD without Reinstalling without Data Loss
Move Windows 10 Installation to SSD without Reinstalling without Data Lossmoli he
 
Forgot Outlook Email Password - How to Retrieve | Reset | Change Email Passwo...
Forgot Outlook Email Password - How to Retrieve | Reset | Change Email Passwo...Forgot Outlook Email Password - How to Retrieve | Reset | Change Email Passwo...
Forgot Outlook Email Password - How to Retrieve | Reset | Change Email Passwo...moli he
 
Always Forget Password? Here is How to Create a Good Password
Always Forget Password? Here is How to Create a Good PasswordAlways Forget Password? Here is How to Create a Good Password
Always Forget Password? Here is How to Create a Good Passwordmoli he
 

More from moli he (6)

How to Optimize Windows 10 for Gaming and Productivity
How to Optimize Windows 10 for Gaming and ProductivityHow to Optimize Windows 10 for Gaming and Productivity
How to Optimize Windows 10 for Gaming and Productivity
 
How to Free up Space on Mac - 12 Ways to Clear Disk Space on Mac
How to Free up Space on Mac - 12 Ways to Clear Disk Space on MacHow to Free up Space on Mac - 12 Ways to Clear Disk Space on Mac
How to Free up Space on Mac - 12 Ways to Clear Disk Space on Mac
 
Forgot restrictions passcode - How to Reset Restrictions Passcode on iPhone
Forgot restrictions passcode - How to Reset Restrictions Passcode on iPhoneForgot restrictions passcode - How to Reset Restrictions Passcode on iPhone
Forgot restrictions passcode - How to Reset Restrictions Passcode on iPhone
 
Move Windows 10 Installation to SSD without Reinstalling without Data Loss
Move Windows 10 Installation to SSD without Reinstalling without Data LossMove Windows 10 Installation to SSD without Reinstalling without Data Loss
Move Windows 10 Installation to SSD without Reinstalling without Data Loss
 
Forgot Outlook Email Password - How to Retrieve | Reset | Change Email Passwo...
Forgot Outlook Email Password - How to Retrieve | Reset | Change Email Passwo...Forgot Outlook Email Password - How to Retrieve | Reset | Change Email Passwo...
Forgot Outlook Email Password - How to Retrieve | Reset | Change Email Passwo...
 
Always Forget Password? Here is How to Create a Good Password
Always Forget Password? Here is How to Create a Good PasswordAlways Forget Password? Here is How to Create a Good Password
Always Forget Password? Here is How to Create a Good Password
 

Recently uploaded

ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?Watsoo Telematics
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 

Recently uploaded (20)

ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 

How to Password Protect a Folder in Windows10

  • 1. 3 w a y s t o e n c r y p t f i l e s a n d f o l d e r s i n w i n d o w s 1 0 How to Password Protect a Folder in Windows10
  • 2. 1. Lock a folder in Windows 10 Pro using folder encryption 2. Password protect a folder with 7-Zip 3. Password protect a folder using a batch file CONTENTS
  • 3. Lock a folder in Windows 10 Pro using folder encryption If you’re running Windows 10 Pro, there is a built-in protection system, which locks a file to your account. That way, however, anyone using your PC and account would still have access.
  • 4. How to Use Windows 10 Pro Folder Encryption 4 Step 1: Do a right-click on the folder you want to lock, and then click on Properties. Step 2: Click Advanced. Step 3: Check the box next to Encrypt contents to secure data and click OK. Step 4: Click Apply and when prompted, choose whether you want all folders within that directory to be encrypted, or merely the top-level one. When you’ve decided, click OK.
  • 5. Password protect a folder with 7-Zip For most Windows users, adding a password to a folder requires a third-party archiving utility or some form of compression software. Options include 7-Zip and WinZip. They do a great job of password-protecting your important data.
  • 6. How to create a password protected Zip file in Windows 10 6 Step 1: Navigate to the 7-Zip or WinZip download page and select the right download for you. Install and run it. Step 2: Locate the folder you wish to password protect, right-click and select: WinZip or 7- Zip > Add to archive. Step 3: Then, enter and re-enter your desired password for the folder in the text fields located on the right-hand side of the window. Click the OK button when finished and allow the utility to create a compressed. See Also: How to Create a Password Protected ZIP File with WinZip or 7-Zip
  • 7. Password protect a folder using a batch file
  • 8. How to Password protect a folder using a batch file 8 1. Open Notepad. 2. Copy the following codes and paste them into Notepad. cls @ECHO OFF title Folder Locker if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK if NOT EXIST Locker goto MDLOCKER :CONFIRM echo Are you sure u 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 Locker "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=>"
  • 9. 3. Change the password. 9 Locate if NOT “%pass%==your_password” goto FAIL in the code that you just pasted. And then change your password to the password of your choice.
  • 10. 10 4. Save the file and choose a name a ensure that you add a .bat extension to your file. Also, make sure that the encoding type is ANSI. Click on Save.
  • 11. 11 5. Double click on the BAT file that you just created. 6. Run the batch file by double-clicking it. You will see a folder with the name same as the BAT file. 7. Move the files and folders that you think are sensitive to the same folder which including the .bat file. 8 Double-click on the .bat file again. A Command Prompt will open and asking if you want to lock the folder. Type Y then press enter. 9. Done. No one can access your folder without the password.