You may want to keep certain files or folders private. For example, you might want to keep personal information private, or access a file that others shouldn’t see. You can easily password protect a file in Windows 10.
This article explains how to password protect a file using different methods in Windows 10. Note that the features available for password protection vary by file type and version of Windows.
However, all versions of Windows have similar features for protecting files from prying eyes and unauthorized access.
1. Use Third Party Softwere GiliSoft To Protect File
Follow these steps to get started with GiliSoft:
- Download and install the application on your computer.
- Start the application and enter the password you set during registration.
- Click on the “Locking file” option from the “lock disk” options on the next screen, then select the “Lock folder” button located in the right corner of your screen.
- To lock a folder, select it and press OK. In this example, we’re locking the “Saved Pictures “folder .
- The next screen will show that the folder is now locked.
You can unlock your folder by clicking on the ‘Unlock’ button. Once you’ve done that, the folder will appear as a normal, visible folder.
2. Lock Your Folder Without Any Third Party App
You can password-protect folders in Windows 10 using a batch script. Here’s how:
Create an empty text document within your folder by right-clicking an empty space and selecting New > Text Document.
You can see the new text document is created on the screen. Double-click the text file to open it and paste the following text into the new document.
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=>" if NOT %pass%==Your-Password-Here goto FAIL attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker echo Folder Unlocked successfully goto End :FAIL echo Invalid password goto end :MDLOCKER md Locker echo Locker created successfully goto End :End
Replace “Your-Password-Here” with the password you want to use to lock the folder.
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=>" if NOT %pass%==hackreveal@prakash-Here goto FAIL attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker echo Folder Unlocked successfully goto End :FAIL echo Invalid password goto end :MDLOCKER md Locker echo Locker created successfully goto End :End
- Click File
- Select Save as
- Enter Name as FolderLocker.bat
- Select “All Files”
- Click the save button
Double-click on the BAT file to create your “Locker” folder. This is the folder that will be locked with your password. You should now have a folder, as well as a file, named Locker.
To keep your sensitive files safe, follow these steps:
- Place all desired files into the Locker folder.
- Double-click on the Locker.bat file to open it.
- Enter Y when Cmd Open , then press Enter to lock the folder.
Your folder will now be hidden from view – but don’t worry, this is normal!
To access your hidden files again, double-click on the Locker.bat file and enter your password when prompted. Your Locker folder will reappear and you can continue using it as usual.
3. Hide Youre Files
- To hide a file or folder: right-click on the file or folder you want to hide and select Properties. In the Properties window,
- Check the Hidden option under Attributes. Click Apply and then OK.
Your file or folder should now be hidden. To view your folder again, click on the View tab in your Windows 10 file manager. Then, select Options > Change folder and search options.
Click on the View tab in the File Options window. Then, Select Show hidden files, folders, and drives . After that, click Apply and then OK.
Read Also:
The Top 10 Best Keylogger Apps for Android Devices
I know this if off topic but I’m looking into starting my own weblog and was wondering what all is needed to get set up? I’m assuming having a blog like yours would cost a pretty penny? I’m not very web smart so I’m not 100 certain. Any suggestions or advice would be greatly appreciated. Thank you|
Hi there, I enjoy reading through your post. I like to write a little comment to support you.|
I’m extremely impressed with your writing skills and also with the layout on your blog. Is this a paid theme or did you modify it yourself? Anyway keep up the nice quality writing, it is rare to see a great blog like this one nowadays.|
Hi, Neat post. There’s a problem along with your site in internet explorer, could test this? IE still is the marketplace leader and a big element of other people will miss your excellent writing because of this problem.|
sure i will check
When someone writes an post he/she retains the image of a user in his/her brain that how a user can understand it. Thus that’s why this piece of writing is amazing. Thanks!|
Thanks for your personal marvelous posting! I quite enjoyed reading it, you’re a great author. I will be sure to bookmark your blog and may come back sometime soon. I want to encourage you to definitely continue your great job, have a nice holiday weekend!|
you are actually a excellent webmaster. The website loading speed is amazing. It kind of feels that you’re doing any distinctive trick. Also, The contents are masterwork. you’ve done a excellent task in this topic!|
thanks
You’re so awesome! I don’t suppose I’ve read something like that before. So good to discover somebody with some unique thoughts on this issue. Seriously.. thanks for starting this up. This site is something that is needed on the web, someone with a little originality!|
I used to be able to find good info from your blog articles.|
Having read this I thought it was extremely enlightening. I appreciate you taking the time and effort to put this information together. I once again find myself personally spending a lot of time both reading and posting comments. But so what, it was still worth it!|
Asking questions are in fact nice thing if you are not understanding anything fully, however this article presents nice understanding yet.|
It’s perfect time to make some plans for the long run and it is time to be happy. I’ve learn this publish and if I may just I wish to suggest you some fascinating issues or suggestions. Perhaps you could write subsequent articles regarding this article. I desire to read more issues about it!|
Thanks , I’ve recently been searching for info about this topic for a while and yours is the best I’ve found out till now. But, what concerning the conclusion? Are you sure in regards to the supply?|
Hi there to every , since I am in fact eager of reading this website’s post to be updated regularly. It includes pleasant information.|
i am for the first time here. I found this board and I in finding It truly helpful & it helped me out a lot. I hope to present something back and help others such as you helped me.
Hi there, I want to subscribe for this website to take latest updates, so where can i do it please help out.|
Normally I don’t learn post on blogs, however I wish to say that this write-up very forced me to take a look at and do so! Your writing style has been surprised me. Thank you, very nice article.|
Excellent post. I was checking continuously this blog and I am inspired! Extremely helpful information particularly the remaining part 🙂 I maintain such info a lot. I was looking for this certain information for a very long time. Thanks and good luck. |
Thank you for the good writeup. It in fact was a amusement account it. Look advanced to more added agreeable from you! By the way, how could we communicate?|
I blog frequently and I seriously thank you for your information. Your article has really peaked my interest. I’m going to bookmark your website and keep checking for new information about once per week. I opted in for your RSS feed as well.|
Hi to every body, it’s my first visit of this webpage; this website contains awesome and truly good data for readers.|
Sweet blog! I found it while surfing around on Yahoo News. Do you have any tips on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it|
My brother suggested I may like this website. He was entirely right. This submit actually made my day. You cann’t believe simply how so much time I had spent for this information! Thanks!|
I was able to find good information from your articles.|
Hi, this weekend is fastidious in favor of me, since this time i am reading this fantastic informative article here at my home.|
I really like reading an article that will make people think. Also, thanks for allowing for me to comment!|
constantly i used to read smaller posts that also clear their motive, and that is also happening with this article which I am reading at this time.|
What a material of un-ambiguity and preserveness of valuable knowledge regarding unexpected feelings.|
I’m not sure why but this weblog is loading very slow for me. Is anyone else having this problem or is it a issue on my end? I’ll check back later on and see if the problem still exists.|
Wonderful, what a webpage it is! This website presents helpful data to us, keep it up.|
Hey just wanted to give you a quick heads up. The text in your article seem to be running off the screen in Firefox. I’m not sure if this is a format issue or something to do with browser compatibility but I thought I’d post to let you know. The layout look great though! Hope you get the problem fixed soon. Thanks|
Heya! I realize this is somewhat off-topic however I had to ask. Does managing a well-established blog such as yours require a massive amount work? I am brand new to writing a blog but I do write in my diary everyday. I’d like to start a blog so I will be able to share my personal experience and thoughts online. Please let me know if you have any ideas or tips for brand new aspiring blog owners. Appreciate it!|
hey there and thank you for your information – I’ve definitely picked up anything new from right here. I did however expertise several technical issues using this website, since I experienced to reload the site a lot of times previous to I could get it to load properly. I had been wondering if your web host is OK? Not that I am complaining, but slow loading instances times will sometimes affect your placement in google and can damage your quality score if advertising and marketing with Adwords. Well I’m adding this RSS to my e-mail and can look out for a lot more of your respective fascinating content. Ensure that you update this again very soon.|
Hi just wanted to give you a quick heads up and let you know a few of the images aren’t loading properly. I’m not sure why but I think its a linking issue. I’ve tried it in two different browsers and both show the same results.|
Definitely believe that which you said. Your favorite justification appeared to be on the web the simplest thing to be aware of. I say to you, I definitely get annoyed while people consider worries that they just do not know about. You managed to hit the nail upon the top and defined out the whole thing without having side effect , people can take a signal. Will probably be back to get more. Thanks|
It is really a great and useful piece of info. I’m satisfied that you shared this helpful info with us. Please stay us up to date like this. Thanks for sharing.|
whoah this weblog is fantastic i like studying your posts. Keep up the great work! You already know, many persons are looking around for this information, you can help them greatly. |
May I just say what a relief to discover somebody who truly knows what they are discussing on the internet. You certainly know how to bring a problem to light and make it important. More and more people really need to read this and understand this side of the story. I was surprised you aren’t more popular because you certainly have the gift.|
Hey very interesting blog!|
Hello Dear, are you truly visiting this web site daily, if so then you will definitely take nice know-how.|
I don’t even know how I stopped up right here, but I assumed this put up was once good. I do not recognise who you’re but certainly you are going to a famous blogger if you happen to aren’t already. Cheers!|
thank
It’s appropriate time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I want to suggest you some interesting things or advice. Maybe you could write next articles referring to this article. I wish to read even more things about it!|
Wow that was strange. I just wrote an really long comment but after I clicked submit my comment didn’t show up. Grrrr… well I’m not writing all that over again. Anyway, just wanted to say great blog!|
Excellent way of explaining, and pleasant paragraph to take information about my presentation focus, which i am going to convey in academy.|
It’s great that you are getting ideas from this article as well as from our argument made at this time.|
Hi i am kavin, its my first occasion to commenting anyplace, when i read this piece of writing i thought i could also make comment due to this good article.|
Howdy! Do you know if they make any plugins to safeguard against hackers? I’m kinda paranoid about losing everything I’ve worked hard on. Any suggestions?|
My brother suggested I might like this website. He was totally right. This post truly made my day. You can not imagine just how much time I had spent for this information! Thanks!|
Hello there, You have performed a fantastic job. I’ll certainly digg it and personally recommend to my friends. I’m confident they’ll be benefited from this website.|