Skip to main content

Hide your file by two ways



Do you want to hide your file or image or video or anything and you don’t want anybody to see it. Then there are two ways to do that.

The simple way:
Right click on your file > Properties > hit Hide > press Ok
choose properties

click on Hidden then OK

The Dos way:
Open cmd from start menu and type cmd
Then type the following command and don't forget to leave a space between attrib and +S and +H and the path:

attrib +S +H [the path to your file including file name and its extension]
Note: attrib display or change in a file.

Type cmd  in the search bar then open cmd


Example:
attrib +S +H C:\Users\Nicole\Desktop\Songs.txt
In this way you hide your file, and make it a system file in order to disable users from seeing it with the normal show/hide way.

What is the System file? It is a computer file important to the operating system with the system attribute turned on and Windows computers are configured by default not to display system files in normal file searches or in folder views.
Note:
In both ways make sure that you checkedDon’t show hidden files, folders, or drivers’ to make sure that your file will be hidden when you apply the hide option from properties of file as follow:
Open My Computer> Organize > Folder and search options >click on Don’t show hidden files, folders, or drivers

choose folder and search options

click on Don't show hidden files, folders, or drivers
If you make your file a system file by using +S, you need to check ‘Hide protected operating system files’ in order to be sure that your file can’t be seen by the normal way which means that in case anybody unchecked the hidden option in the Folder options, your file still hidden. Also check ‘Hide extensions for known file types’ and ‘Hide empty drivers in the computer folder’ as follow:

choose Don't show hidden files and check the hide of drivers, extensions, and system files


You can use the following options with your code depending in your needs:
attrib [+R | -R] [+A | -A] [+S | -S] [+H | -H] [[drive:][path]filename]
 +  Sets an attribute. ‘apply the effect on the file’ like if you want to hide the file choose +H
 -   Clears an attribute. ‘Remove the effect from the file’ like if you want to show the file choose -H
 R  Read-only file attribute. 'Just read the file and software can't write on it'
 A  Archive file attribute. 'Set whenever an existing file is either overwritten or modified'
 S  System file attribute.
 H  Hidden file attribute.



Comments

Popular posts from this blog

Error Class names are only accepted if annotation processing is explicitly requested

Do you get the following error? Class names, 'Hello', are only accepted if annotation processing is explicitly requested 1 error In case you got this error, then you forget to add .java to the file name when you compile it So when you want to compile a file using cmd console window write the filename.java extension Example: Javac Hello.java If you write it in this way the error will go away. So don’t forget to include suffix with your file name during compilation.

Multitenancy

What is Multitenancy? Multitenancy is an architecture in which a single instance of a software application serves multiple customers. It gives the ability to use the same software and interfaces to configure resources and it isolates customer-specific traffic and data. Each customer is called a tenant. Tenants may be given the ability to configure some parts of the application, such as color of the user interface ( UI ) or business rules , but they cannot change the application's code . This means that although tenants are using the same building blocks in their configuration, the appearance or workflow of the application may be different for two tenants. Also, the Service Level Agreement (SLA) of each tenant can differ [1]. Multitenancy vs. Singletenancy: Multitenancy can be economical because software development and maintenance costs are shared. It can be contrasted with single-tenancy, an architecture in which each customer has their own software instance and ...

An attempt was made to insert a node where it is not permitted

Do you face this Error while you are writing code to generate xml file from java? Exception in thread "main" org.w3c.dom.DOMException : HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.        at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.insertBefore(Unknown Source)        at com.sun.org.apache.xerces.internal.dom.NodeImpl.appendChild(Unknown Source)        at generatexml.WriteXMLFile.main( WriteXMLFile.java:30 ) Well the answer is: Don't insert the node where it isn't permitted. Change your generated directory file path from 'C' to other directory ex, D or to any directory you have. Make sure the ‘appendChild’ is referring to the right element. Don’t appending twice, only make it once. Ex, //Writetoxml.java   Element rootElement = doc . createElement ( " Company " );   doc . appendChild ( ro...