Skip to main content
Code42 Support

Windows File Paths Longer Than 255 Characters

Applies to:
  • CrashPlan PRO
  • CrashPlan PROe


If you are using the Windows operating system and your backup status isn't reaching 100%, one possible cause could be that you are backing up file paths and names that exceed a 255-260 character limit. This article provides a technical explanation for this issue and a recommended solution.


The CrashPlan app running on Windows (All versions, x86 and x64)

Before You Begin

If you haven't done so already, you may want to start by reading our Windows solutions guide for Unable to Back Up X Files issues.

Under The Hood

Microsoft has a core set of application programming interfaces (APIs) that programmers can use to interact with applications in the Windows operating system. These programming interfaces are often referred to as the Windows API. The Windows API imposes a maximum filename length such that a filename, including the file path to get to the file, can't exceed between 255-260 characters. 

However, because this is a limitation of the Windows API and not the file system used on the majority of Windows installations (NTFS), some programs can create filenames that violate this limit.

When CrashPlan attempts to read these files for backup, it fails because Windows doesn't know how to handle the file. When this occurs, the following error message displays in the CrashPlan service.log:

WARN W196815609_BQTodoWkr] Problem getting named streams for file={filename}, Could not open file...handleValue is invalid {filename}


Symptoms of this issue include:

  • Your backup never reaches 100%
  • CrashPlan is running but certain files stay on the backup to-do list

It can be difficult to correct this issue. If you try to rename, move, or delete the file in Windows, you may receive the following messages:

Source Path Too Long Error Dialog Box

Delete Folder Error

Recommended Solution

Since you are not able to move the files using Windows Explorer, you must use the subst command to shorten the file path for the file(s). 

The simplest way to fix this is to:

  • Substitute the folder that has a long file path with a drive letter (thereby shortening the overall character count for the files contained in the folder)
  • Copy or move the files out of the folder into another folder that won't violate the limit
  • Delete the mapped folder

You can do this using either of the methods described below.

Method 1: Use The Subst Command To Assign A Drive Letter To A Specific Folder

You can substitute a specific folder path with a drive letter using the Windows Command Prompt (Start > All Programs > Command Prompt) and the subst command.  The command follows the format:

subst <driveletter> <folder path>

For example, if you wanted to the folder path C:\Example\File\Path with the drive letter Y, you would enter:

subst Y: C:\Example\File\Path

Now the Y: drive is "mapped" directly to the folder.  Since you have substituted most of the long file path with Y:, it no longer violates the character limit. You can now move the files out of this folder to a folder with a shorter file path.

After you move the files, you can delete the virtual drive by running the subst command with the /d parameter.   To delete the Y: drive created in the example above, enter:

subst Y: /d

Method 2: Use Visual Subst To Assign A Drive Letter To A Specific Folder

If you aren't comfortable using the Windows Command Prompt, there is a free utility called Visual Subst that you can use to achieve the same results. Code42 does not create or test this software. If you choose to use it, we cannot provide support.

Information about the program and an example of its usage can be found at: