Windows OS Hub
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux

 Windows OS Hub / Windows 11 / Remove the Max Path Length Limit (260-Characters) on Windows

November 19, 2025

Remove the Max Path Length Limit (260-Characters) on Windows

Windows has a well-known limitation that restricts the maximum length of a file or folder path to 260 characters. File Explorer and many Win32 apps cannot handle file paths longer than 260 characters. Users may encounter path too long errors when trying to create, save, copy, or move files or folders with paths that exceed the maximum allowed length.

This limitation is not due to the NTFS file system but to the Win32 API, which defines the maximum path length (MAX_PATH) as 260 characters. The full path includes the drive letter (e.g., E:\), which takes up three characters; the folder path; the file name; and an invisible terminating NULL character, which takes up one character. Therefore, the real maximum length of a file or folder name is 256 characters.

A "path too long" error in Windows

A new Group Policy option that enables long path support was introduced with the release of Windows 10 (version 1607) and Windows Server 2016. This option is disabled by default. To enable long path support in Windows:

  1. Open the local GPO editor (gpedit.msc)
  2. Navigate to Computer Configuration -> Administrative Templates -> System -> Filesystem
  3. Enable the policy Enable Win32 long paths Enable Win32 long paths - GPO option in Windows
  4. To apply this option, restart the computer.

Or, you can enable the long file path support via the registry:

reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f

LongPathsEnabled - registry option

Even if you have enabled the long path support in Windows, it doesn’t guarantee that any app will correctly handle paths that exceed the default limit.

The key point is that the application must be built specifically to support long paths, and the longPathAware option must be enabled in its manifest. To verify whether a specific app supports long paths, check its manifest file for the longPathAware option. The manifest is sometimes a separate XML file stored in the application directory, but more often it is embedded within the executable (.EXE) file itself

The easiest way to explore the EXE file manifest is with the Resource Hacker tool. For example, I opened the Acrobat Reader executable file (AcroRd32.exe) in Resource Hacker. Expand the Manifest resource branch, then search the XML description for the longPathAware string. In this example, the presence of the line <ws2:longPathAware>true</ws2:longPathAware> indicates that Acrobat Reader supports long paths and will function correctly with such files once the LongPathsEnabled policy is enabled.

Check for longPathAware option in executable manifest

Long paths may still cause errors with legacy or specialized apps. Microsoft Word and other MS Office programs, for example, do not support long paths. Furthermore, Windows File Explorer still doesn’t support working with objects whose path exceeds the Win32 API’s MAX_PATH value.

To bypass the Win32 API limitation, many applications use an absolute file path with the \\?\ prefix, which is not subject to the MAX_PATH restriction. For example, the file path in this UNC format can look like this: \\?\C:\ItsVeryVeryLongPath\LongNameFile.txt

If your application doesn’t support longPathAware mode, you can use the \\?\ prefix path format to access files. This will bypass the MAX_PATH limit.

Use extended-length paths with a prefix

If you need to perform bulk operations on files with long paths (such as delete, move, or copy) that Windows Explorer doesn’t support, you can use alternative file managers like FAR, 7-Zip File Manager, and others. Or command-line tools such as robocopy, xcopy or PowerShell.

Of course, deep folder nesting and/or very long file names are bad practices that I rarely encounter nowadays. This problem usually affects users of file servers who create complex, hierarchical directory structures. An administrator can monitor maximum path lengths on file servers using scripts and address the issue through a combination of organizational and technical measures.

0 comment
0
Facebook Twitter Google + Pinterest
Questions and AnswersWindows 10Windows 11Windows Server 2022
previous post
Enable/Disable Random Hardware (MAC) Address for Wi-Fi on Windows
next post
AppLocker: Configure Application Restriction Policies in Windows

Related Reading

Configuring RemoteApps Hosted on Windows 10/11 (without Windows...

January 25, 2025

Bridging Multiple Network Interfaces on Windows

November 21, 2024

Fix: Windows Update Tab (Button) is Missing from...

December 16, 2024

Change BIOS from Legacy to UEFI without Reinstalling...

April 23, 2025

How to Prefer IPv4 over IPv6 in Windows...

April 15, 2025

Find a Process Causing High Disk Usage on...

July 16, 2025

Map a Network Drive over SSH (SSHFS) in...

May 13, 2025

How to Detect Which User Installed or Removed...

June 25, 2025

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • SMB over QUIC: Mount File Share over Internet without VPN on Windows Server 2025

    November 4, 2025
  • How to Find a Previous Computer Name in Windows

    October 28, 2025
  • Stop Windows Server from Auto-Shutdown Every Hour

    October 22, 2025
  • How to Delete a Windows Service via CMD or PowerShell

    October 16, 2025
  • Resource Fair Sharing in Windows Server Remote Desktop Services (RDS)

    October 6, 2025
  • How to Disable (Enable) Credential Guard in Windows 11

    October 6, 2025
  • Wrong Network Profile on Windows Server after Reboot

    September 30, 2025
  • How to Get Windows 10 Extended Security Updates After End-Of-Life

    September 24, 2025
  • Blocking NTLM Connections on Windows 11 and Windows Server 2025

    September 23, 2025
  • Windows Stucks at ‘Getting Windows Ready, Don’t Turn Off Computer’

    September 15, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Converting Windows 10 to Enterprise LTSC Without Losing Data
  • Permanently Disable Driver Signature Enforcement on Windows 11
  • How to Remove ‘Some Settings are Managed by Your Organization’ on Windows 11 or 10
  • Fix: Windows Update Tab (Button) is Missing from Settings
  • Fix: Your IT Administrator Has Limited Access to Virus & Threat Protection
  • How to Add or Reinstall the Microsoft PDF Printer on Windows
  • Fix: Multiple Connections to a Server or Shared Resources by the Same User
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top