[Windows] Let's create a folder that is invisible to general users using "attrib", which is more powerful than hidden folders.

Windows

Hello!This time, I would like to introduce how to hide folders one step further using the Attrib command.

If you make it invisible with this hidden method, even the display of the "hidden folder", which is often called, will be invisible, which is a powerful method.There is one or two pieces of data that no one wants to see, so if you hide it this way, you're not quite familiar with it ... or rather, you can't easily open it without knowing the name of the folder. Therefore, it is very effective for confidentiality.

Well, it is intended to protect files that are closely related to the system, which would otherwise be a problem if erased, so abuse is illegal ... (sweat)

Thing you want to do

-I want to hide hidden folders and files even if they are set to be displayed.

Normally, what is called a hidden folder or hidden file can be set by checking the hidden file from the property screen.You can make it invisible on Windows that has not been set.

However, with this alone, if you set "Show hidden files and folders in the folder option", it will only become a semi-transparent icon, and it will not be completely hidden.

In the case of SE who works at a company and it would be a problem if it was erased, it would be annoying if the contents were tampered with by a slightly detailed user if it was dealt with only by this.

In this Attrib command, by specifying it as a system protected file and then making it a hidden file, it is possible to make it invisible even with the hidden display setting by this folder option.

Command example

attrib +s +h C:\秘密のフォルダ

Commentary

The Attrib command is a command for investigating and assigning attributes to folders and files.
There are quite a lot of options, but there are few cases where you can substitute other commands or have to do that in the first place, so this time I will focus only on assigning attributes.

First of all, how to add attributes

attrib + s + h [path of the folder or file you want to give]

You can add the attribute by adding one letter of the alphabet that represents the attribute to + like "+ s", and remove the attribute by adding-like "-s".

There are many alphabets that represent attributes, but are the typical ones as follows?

R Read-only file attributes S System file attributes H Hidden file attributes

* Read-only makes it impossible to overwrite and change data.

The important thing here is the "S" system file attribute, but at the same time, if the "H" hidden file attribute is set,"Invisible" even if hidden files and folders are set to display

To confirm this existence, you need to search for it by using "dir / a" etc. at the command prompt.

For the time being, when you want to restore it, please replace "+" with "-" as shown below.

 attrib -s -h [path of the folder or file you want to give]

Also, if you know the name of this hidden folder, please note that you can access it by directly writing the path to the execution etc. by specifying the address field or file name of Explorer directly.

Afterword

This time, I introduced how to hide folders and files using the Attrib command.

I think there are various uses, but when working in IT, there are a certain number of users who are insanely curious, and they are inevitably tampered with.Especially, if you create a hidden folder on the odd side, you will be happy to open the inside, and I'm impressed that the person who does extra things and gets stuck is really an adventurer.

This method is invisible and is recognized as a system file, so it is somewhat tolerant of deletions and changes.If you attach it to the distribution file etc., you may be relieved as an administrator.

Also, due to its nature, if you attach it to a file or folder that you do not want to see, it will be difficult to find it unless you are a very detailed person, so it is also a useful method to set it to data that you do not want to be seen by your family or lover. I think ^^;

I hope it helps you.

Hello!This time Attrib

Comment

Translate »
I copied the title and URL