Windows File System Structure

Last Updated : 8 Aug, 2025

The Windows file system is a hierarchical structure used to organize and manage files and folders on storage devices.

  • It controls how data is stored, named, and retrieved by the operating system.
  • Without it, data would be a single unstructured block, making access and organization nearly impossible.

Hierarchical File Structure

The hierarchical file structure in Windows OS organizes files and folders in a tree-like format, where data is stored at different levels. Each file or folder is kept inside another folder (called a directory) based on its type or use, making it easier to manage and find information.

Structure
  • C:\ - This is the main directory (also called the root) of the C: drive. All other folders and files branch out from here.
  • Windows\ -This is the system directory where all core files needed to run the Windows OS are stored.
  • Program Files\ - This folder holds installed software applications (for 64-bit systems).
  • Users\ - This directory contains user account data — documents, downloads, settings, etc.
  • Temp\ - This is a folder for temporary files. It is used by Windows and various applications to store temporary data.
  • System32\ - A subfolder inside Windows It contains vital system files, such as drivers, DLLs, and executables, required for system operations.
    Example: cmd.exe, taskmgr.exe live here.
  • AppName\ - Represents an example application folder inside Program Files. Every installed software usually has its folder here.
  • Public\ - Files in this folder are accessible to all users on the system.
  • Sujal\ - This is a user profile folder for a specific user named Sujal. Each user on the system has a folder like this.
  • Documents\ - A personal folder under the Sujal profile for storing documents. It’s part of the user’s library folders (like Desktop, Pictures, Downloads).

File Name

  • The file name is the user-defined portion of a file.
  • It can include letters, numbers, and certain symbols (except special characters like \ / : * ? " < > |).
  • It helps users recognize and organize files based on purpose, such as invoice2025, holidayphoto, or project_notes.

File Extensions

  • A file extension is the suffix at the end of a file name, typically separated by a dot (e.g., .docx, .mp4, .exe).
  • It identifies the file's format and instructs the operating system on which application to use for opening or executing the file.
ExtensionFile TypeDefault Program (example)
.docxWord DocumentMicrosoft Word
.pngImage FilePhotos, Paint, Photoshop
.exeExecutable ApplicationRuns directly as a program
.txtText FileNotepad or any text editor
.mp4Video FileWindows Media Player, VLC, etc.

Types of File Systems

The three most common file systems in Windows are as follows :

  • FAT
  • HPFS
  • NTFS

FAT (File Allocation Table)

The FAT full form is the File Allocation Table. Microsoft created the file system known as file allocation table, or FAT, for hard drives. It is used by operating systems to manage files on hard drives. The clusters on a storage drive and the relationships between them via related directories and files are tracked by the FAT system using a table. The table is essential to the allocation and storage of files. Although it occasionally refers to the table itself, the abbreviation (FAT) refers to the file system.

image

HPFS (High Performance File System)

The High Performance File System (HPFS) is a disk file system introduced in the late 1980s through a joint effort between Microsoft and IBM, specifically developed for use with the OS/2 operating system. At the time, the widely used FAT (File Allocation Table) file system was facing significant limitations in terms of speed, efficiency, and scalability. HPFS was created as a more advanced alternative to overcome these drawbacks and meet the growing demands of modern computing environments.

Unlike FAT, which had a simplistic design and limited capabilities, HPFS was built with performance, organization, and support for large storage systems in mind. It introduced several innovations that made it more suitable for business and professional use.

NTFS (New Technology File System)

A file system is a structure used by an operating system to organize and manage files on a storage device such as a hard drive or USB flash drive. NTFS stands for New Technology File System is one such file system. It is a proprietary file system developed by Microsoft for Windows. It was introduced with Windows NT and is now the default file system for modern Windows versions.

It offers features like file compression, encryption, and advanced security through permissions. NTFS file system has many technical benefits over other file systems such as an improved version as compared to FAT (File Allocation Table ) and an improved support for metadata as compared to HPFS (High Performance File System).

ntfs

Metadata in File System

Metadata is data about a file — not the file's content, but details like its name, size, type, location, and permissions.

  • It helps the OS organize, manage, and quickly access files using structures like the Master File Table (MFT) in NTFS.
  • Metadata includes timestamps, file permissions, and directory info, enabling efficient file handling without scanning the entire disk.
testimg_exif
Meta data of test image

Key Points of Metadata

  • File Name : A user-friendly identifier assigned to the file, typically including a name and extension (e.g., report.docx) that indicates its type and purpose. File Type : Based on the file extension (e.g., .txt, .jpg).
  • File Size : Indicates the amount of storage the file consumes on the disk, typically measured in bytes, kilobytes, or larger units depending on its size.
  • File Type : Specifies the file type or format, usually identified by its extension (e.g., .txt, .jpg, .exe), which determines how the file is opened and processed by the system.
  • Location (Pointer) : Refers to the physical or logical address on the storage device where the file’s actual data is saved and accessed by the operating system.
  • Timestamps : Contains timestamp information such as the file’s creation time, last modified time, and last accessed time, helping track its usage history.
  • permissions : Defines access permissions specifying which users, groups, or others have the rights to read, write, or execute the file.

Access Control and Permissions in Windows File System

Access Control in the Windows file system refers to the mechanism used to regulate which users or system processes are allowed to access, modify, or execute files and folders. It ensures that only authorized users can perform specific actions on a file or directory.

In the Windows file system, permissions define the level of access that users or groups have to files and folders. They specify what actions can be performed, such as reading, writing, or executing a file. These permissions are a core component of the system’s security model, and they are mainly handled by the NTFS (New Technology File System), which supports detailed and flexible permission settings for better control and protection of data.

read_modify_img
Permissions of a folder for specific user

There are some common NTFS Permissions includes

  • Read : Allows the user to view the contents of a file or folder, including reading the file’s data and seeing its attributes and permissions.
  • Write : Grants permission to add new data or make changes to an existing file. In folders, it also allows creating new files and subfolders.
  • Execute : Permits the user to run executable files or applications. For folders, it allows navigating into the folder (traversal).
  • Modify : Combines read, write, and delete permissions. Users can change content, rename files, or delete them, but cannot change ownership or permissions.
  • Full Control : Provides complete access to the file or folder, including all of the above rights. It also allows users to change permissions and take ownership of files or folders.
Comment