Saturday, December 3, 2016

Path Too Long Auto Fixer - the only tool that auto corrects long file names and paths to fit under the 260 character limit

Path Too Long Auto Fixer  is the 1st and only tool that will automatically correct paths and filenames to fit under the 260-character limit in bulk. Back-up all of your files. Other tools make you go through hundreds of files, one-by-one, renaming and copying them somewhere.  Who has time for that now-avoidable activity?

Path Tool Long Error in Windows 10

Path Too Long Auto Fixer
  automatically fixes   hundreds of path and filenames so you don't have to .  

Now you can copy and sync your hundreds of files to the cloud, with out error.

Don't miss a file, on your USB backups or to the cloud.

OneDrive, GDrive and Dropbox, etc all enforce the the 260 character limit.

What is the Path Too Long Error?

When a path (c:\dir1\filename.txt) is longer than 260 in length you get the path too long error.

It must meet this criterion; 

a+b<=260 characters 

a.The fully qualified filename with extension (filename.txt) must be less than 260 characters.
b.The directory name must be less than 248 characters.
c. Combined a+b must be less than 260 characters. 

This limit was imposed for a backwards compatibility issue with older Windows versions. FAT32, and NTFS has supported long path names (up to ~32768 characters), and many times programs could get around this length. But Windows Explorer and .NET programs will give you this error.


FastCopy is free open source, super quick alternative to paid advertised Path Too Long tool.

Both FastCopy, Path Tool Long tool work by copying paths that are too long to a new shorter location. 

However, they don't mention you have painstaking do that for countless files in different directories. Also, these tools don't identify directories that are too long to begin with.

You can read my post on how to find paths that are too long.

These tools make you have to select files one-by-one and copy it somewhere.

1) Who has the time to rename and move 100+ files to new directories?

2) And it's only half the solution, as I point out in my blog post.

Both FastCopyPath Tool Long tool and others do not identify filenames that are too long.

These tools make you have to  rename each filename one-by-one, if you elect to do so. 
If you don't next time you copy these files, you get the error. It's an incomplete solution. 

Path Too Long Auto Fixer
is only tool that automatically fix long paths and filenames on the market today!

What make this solution the Best Choice ? 

Path Too Long Auto Fixer (PTLAF) rocks because in a few steps you can copy  thousands of files . PTLAF will identified the multitude of long paths (directories) and filenames and correct them so you manually do not have too! 

PTLAF is the first and 
only tool on the market that does this today !

PTLAF use an innovative algorithm to shortening filenames and paths so they are still human readable and unique. We are not using 8.3 names here, we have designed our own algorithm here. Download and try it for free!

Path Too Long Auto Fixer rocks because can copy thousands of files  to a new directory in seconds. 

How Path Too Long Auto Fixer Work ? 

Path Too Long Auto Fixer uses a unique algorithm that shortens paths and filenames. It  working its way back up the directories levels, shortening up, until the length is legal. This process is consistent for successive runs. Shortened paths are still readable and easily identifiable from the source.

This is a non-destructive process. No files will be lost. This is a copy, not a move or delete process. There is an new option to delete long source file paths. 

PTLAF does not remove the old too long paths, unless you want it too. There is an option to do delete files, once you are convinced you have it the right way. So you have the original and new shorter paths side-by-side.  

Tested On:
Windows XP ,7, 8, 8.1, 10, 10 Anniversary

Software Specifications:
Full Unicode support for filename and paths.

Full Unicode support for path delimiters (dash, underscore, whitespace), see Advanced Options in Quick Instructions.

Integrated  AlphaFS library to handle long paths over 260 characters and Unicode support.

Software Requirements:

Requires Microsoft .NET Framework 4 Client Profile now expired, but is accessible by
. NET Framework 4.5 is a highly compatible, in-place update to .NET Framework 4. Download here .

Exception for Windows XP use
Microsoft .NET Framework 4 ( Web Installer). Download here.

Requires Powershell_ISE and Powershell to use .NET 4.0 CLR. Check here.
You can upgrade to Powershell 4.0 
Windows Management Framework 4.0 download here.

Do you have . NET Framework 4 installed ? Check FAQ  here. Or use this tool available here.

AlphaFS is a .NET library supports extended length paths (longer than 260 characters).

Download Demo New Release 2 - Mar 1, 2017

Unzip and double-click PathTooLongAutoFixerAppDemo.exe*

* Limited to return 2 rows and opens this blog page.

Guaranteed no malware, no spyware, no evil-ware of any sort, like the rest of my tools.
But I do like to get paid. Free demo tool.

Advanced Options

Quick Instructions - How to use

Begin by choosing A and C in image above, a screen shot of PTLAF GUI; 

Step 1 - Choose  start directory you want to search for long paths.
Step 2 -   Choose  C  destination directory to copy files to, can be external drive or cloud drive.
               B  is calculated for you, taking into account the new path longer length.

Step 3 - Select 1 button to find Invalid Long Paths. See results in D .
              Select rows and copy and paste into Notepad to see results.

Step 4 - Select 2 button to generate script.

When you click Run > Generate Script <  button this will open up Powershell ISE program.

Step 5  -  Just click the green arrow (as in step 1 in image below - red arrow) to run the generated script. You can review the script if you like, and change file names. 


If script fails for some reason,  you'll need to run this command; 

Search for "Windows Powershell", right-click and Run as Administrator (see image below), and paste this command into it and press return.

Set-ExecutionPolicy -Scope CurrentUser -Force - ExecutionPolicy Bypass

Close Powershell ISE and hit  Run > Generate Script <   button again. 

New Advanced Options Window (Release 2)

Unicode support, for all whitespace, underscore and hyphens. Full Unicode support for paths and filenames. 


For license inquires send email via contact form (right panel).

Licenses are sold on a per seat basis, tied to user account and hardware fingerprint.

  1. Single seat for a home user, please use contact form. Will be less than 2.
  2. Single seat for a company is $27.00 USD.
  3. Single seat on a server or VM license is $97.00 USD (a min 3 user seat charge).
  4. 5-User seat license is $127.00 USD.
  5. 10-User seat license is $257.00 USD
  6. Enterprise (unlimited license, portable) please use contact form.

This documentation is a work in progress while final version is being developed.

Licensing Process

  1. I'll send you a License Info Gathering  tool and email results back.
  2. This information is used to make a custom software build for you.

  3. Note: MAC address is used because it's a physical signature of your network card, and generally not supposed to be changeable, but easily is. Your MAC address will not be disclosed to anyone. 
    For added comfort read this;

    "Is it safe to share you MAC Address ?" question on  StackExhange .
  4. Furthermore, all this information will not be share with anyone and is used exclusively for licensing of this product.

Command Line for Administrators

C:\> PTLAutoFix.exe -h for this help

Usage: PTLAutoFix.exe Root="C:\Users\Golden eye\Documents" [Dest="C:\User\Xenia\Onedrive"] [Search=*.doc?] [Min=260] [Max=32767] [Sort=Asc] [Lines=5] [c=1] [t=1] [w=0]

-- required --

 The root directory path(quoted) to start recursively enumerating all sub-directories and files.

-- optional --

 The destination path(quoted) to replace the Root directory in the results. Default is null.

 A file search pattern to filter filenames with. Match '*' (all) or '?' (1) character(s). Default is '*'.

 An integer indicating the minimum length that a path must contain in order to be returned in the results. Default is -1

 An integer indicating the maximum length that a path may have in order to be returned in the results. Default is -1

Format the resultant output. To display the [Len]gth or [Path], or [Both](combined) of found paths. Likewise, for the shortended length [SLen] or path [SPath], or both combined [SBoth] of the found shortened paths. [Paths] = Path + Spath. Default is Both.

 Specifies a delimeter (' ','_','-') used to split each sub-dir path into words. Default is UnderSpace, splits on underscore and space.

 Indicates sort order of the returned results. Default is Desc. Omit to ignore this flag.

 An unsigned integer indicating the number of row to be returned in the results. Default is 0.

Preserve Filename Length (pfl) is an integer indicating the filename (including extension) length for which shortening process will be overlooked. This preserves the name for 'smaller' filenames, however spaces are still removed. Sub-dirs will be shortened.  A value of 0, would shorten filenames maximally.  Default is 25. 

wf=[1|0] or [true|false]  
A boolean to use a blacklist word file (filterwords.csv) to remove words in each sub-dir path as split by Delim option. Default is 0 or false.

tc=[1|0] or [true|false]
 A boolean to title case each word as split by delimeter option. Default is 0 or false.

c=[1|0] or [true|false]
 A boolean to output the count of number of resultant rows. Default is 0 or false.

e=[1|0] or [true|false]
 A boolean to output the elapsed time to generate the resultant rows. Default is 0 or false.

l=[1|0] or [true|false]
 A boolean to output the full license. Default is 0 or false.

v=[1|0] or [true|false]
 A boolean to output the current version. Default is 0 or false.

w=[1|0] or [true|false]
 A boolean to output the warnings. Default is 1 or true, on for novices.

Note: Add the path to PTLAutoFix.exe to path variable, or copy c:\windows\system32

CMD Line - Using optional blacklist words to remove from path

You can black list words that may appear in a path by adding them to a comma-delimited CSV file (filterwords.csv).

Most likely words you might like to remove are those you find redundant or non-descriptive. Your organization also may find and remove words that are verboten, like WTF and other internet slang. You can use this program to rename all you files (by doing a copy and delete, available in the generated script). 

  • Remove internet slang - WTF, Dafuq = (What) the f***?, FML = F*** My Life, Bitch, IDGAF =  I Dont Give A F***, Bitch, etc.
  • Remove conjunctions - for, and, nor, but, or, yet, so, as, if, either, neither, also, etc,
  • Remove determinders  - a, an, its, that, the, their, these, this, those, such, etc  
  • Remove a single letter - !,@,#,' 

File Specification:

The file must not contain the following characters  '<', '>', ':', '"', '/', '|', '?', '*'  as they are reserved path and filename characters - see for exact spec for valid path characters. 

The words are case insensitive. 

Example blacklist file to remove the following words from path and filename: 
so, this, that, WTF, FML, IDGAF, F*** You,TW*T, !, ', etc.

Software Requirements

Requires Microsoft .NET Framework 4 Client Profile now expired, but is accessible by
. NET Framework 4.5 is a highly compatible, in-place update to .NET Framework 4. Download  here .

Exception for Windows XP use
Microsoft .NET Framework 4 ( Web Installer). Download  here.