Windows systems support specialized attributes that dictate how files and folders are accessed and displayed. These attributes help maintain privacy, protect critical data, and streamline user workflows. By leveraging these capabilities, administrators and power users can control which items remain visible and which are concealed from casual browsing.
NTFS file attributes form the foundation for adjusting how the operating system and certain applications interpret file states. Changing these attributes influences how File Explorer, command-line tools, and third-party software handle file and folder display. Understanding these concepts is vital when securing sensitive information or decluttering system directories.
Graphical settings in File Explorer and attribute settings via the Command Prompt serve distinct purposes but share the same core principle of concealing data from immediate view. Customizing hidden files ensures greater control over user experiences and protects files from unintended access. These features allow refined file management and a cleaner directory structure.
Hiding Files and Folders Using the Graphical Interface:
- Open File Explorer from the taskbar or start menu.
- Navigate to the directory containing the file or folder to hide.
- Right-click the chosen file or folder, then select “Properties.”
- In the “General” tab, check “Hidden” under the “Attributes” section.
- Click “OK” or “Apply” to confirm changes.
Ensure the “Hidden items” option in File Explorer Options is unchecked to keep hidden items concealed.
Hiding Files and Folders Using the Command Prompt
- Launch Command Prompt with administrative privileges.
- Change the working directory to the location of the target file or folder.
cd c:\
- Apply the hidden attribute using attrib.
C:\>attrib +h +s MyFolder
- Verify the hidden status using the dir command to confirm that the entry no longer appears in standard directory listings.
C:\>dir <DIR> MyFolder (Hidden)
Use attrib without any options to view current file or folder attributes.

Mohd Shakir Zakaria is a cloud architect with deep roots in software development and open-source advocacy. Certified in AWS, Red Hat, VMware, ITIL, and Linux, he specializes in designing and managing robust cloud and on-premises infrastructures.
Comment anonymously. Login not required.