To hide files on Windows 10, we usually go to folder properties and change the attribute to be hidden, which hides the files or folders on the system. However, these files will be visible whenever “Show hidden files, folders and drives” are enabled.
Usually, people hide files in their flash drive or hard drive using the hidden attribute, assuming that they will be hidden and cannot be viewed by others.
However, today almost every person knows how to view hidden files in Windows. Therefore, if another person wants to view the hidden file, the person will enable “Show hidden files, folders and drives” to view the files.
Thus, it doesn’t make sense to hide files on windows, making them hidden by changing the attribute since it is prevalent. In that sense, This article will show you an alternative method that people don’t often use to hide files on Windows 10, making them as system files.
Why hide files on Windows 10 as System Files?
First, it is not an official method from Microsoft to hide files in Windows by making them as system files.
It’s a trick that some people use to hide files which is very uncommon and unthinkable. A person who is trying to view hidden files will usually enable the “Show hidden files, folders and drives” settings but will not think to enable the show hidden system file.
This trick will hide your file and folder such that the files/folders given an attribute to be system files. These files and folders will not be visible even if the “Show hidden files, folders and drives” are enabled.
Using the below command, it will apply files or folders with system attributes, where the system will consider these files as system files. However, it will only be visible if the “Hide protected operating system files (Recommended)” option is enabled.
Therefore, this trick will give you a sense of security that your files are hidden from others. The chances of other people trying to view hidden files by enabling “Hide protected operating system files (Recommended)” is very low
How to Hide Files on Windows 10 as System File
1. Create a new folder or copy the path of the existing folder/files that you want to make it as system file/folder.
In my case, I have created a new folder as “Techie Inspire” under the directory of E:/Roshan
2. Now, Open Command Prompt, Go to Start >> Run >> Enter “CMD“.
3. Type the below command and press enter. Replace filefolderpath with your path of file or folder.
attrib +s +h +r filefolderPath
As you can see, the folder is not visible even when “Show hidden files, folders and drives” option is enabled
This command will make your folder as a system folder such that it will only be visible when “Hide protected operating system files (Recommended)” option is unchecked (as shown below).
4. To make it visible again type the below command. Replace filefolderPath with your files/folder path.
attrib -s -h -r filefolderPath
Here, we appended a – (minus sign) to specify to remove the attribute for the specific folder. You can hide or protect any files or folders using this “attrib” command. Just give the path address of that folder and Specify the attribute.
As you can see below, the folder is visible now.
Here, Attrib is a command that set the archive attribute.
S – This specifies the system attribute.
R – This specifies the read-only attribute.
H – This specifies a hidden attribute.
“+” – This adds the attribute to archive files or folders.
“-“ – This removes the attribute from archive files or folders.
Subscribe to Techie Inspire for Tips, Tricks, How-To Guides, and Much more…
Check more articles on Windows 10.