Wednesday, May 17, 2017

Solution to "Path too long" or "The file name(s) would be too long for the destination folder" a free program FastCopy is awesome


WindowsForest
Awards 2015
Grand Prize


FastCopy is free open source C project written by Shirouzu Hiroaki 

Touted as "The Fastest Copy/Delete Software on Windows."  and  "It supports UNICODE and over MAX_PATH (260 characters) file path names."

This means you can over come "paths too long" or "Source Path is too long" "Destination Path is too long"  or  "File cannot be copied" errors in most cases.

How? You can copy all you long paths to new location with shorter path.

However, this is only a half solution. This does not solve the problem of the filename itself is too long, see below. You will still get these errors "The file name(s) would be too long for the source/destination folder", next time you copy. To correct these errors, see Path Tool Long Auto Fixer tool below.

FastCopy is a great solution if you know which paths are too long and your number of files/directories you want to move/copy is low.

You still have to the check and rename each filename to shorter ones manually, but you can automate this checking by using Path Tool Long Auto Fixer tool, see notes below.

It won the Japanese Windows Forest Awards 2015 Grand Prize! And it's free.
Unicode support it will work in any language.

Download here.


How to use FastCopy

  1. Click to run in Elevate mode. This same if you were to right-click on exe, and choose "Run as Administrator". 
  2. Click Source button to choose your "Path Too Long" directory.
  3. Click DestDir button to choose your new shortened path. 
  4. Choose Move or Copy but make sure it Overwrite option to copy file time stamp info.
  5. Optionally; Select ACL to copy Access Control List (ACL) or permission that were give to that file. (Only applicable to NTFS formatted drives)




Full options and instructions on FastCopy site.

This is a great solution, if you know which paths to copy and are too long, and they are relatively few in number. See below.

There's only one down side to coping paths that are tool long to a shorter directory, you still can get the path too long error! The filename can be too long and this tool does not solve that problem. 

You will still get these errors "The file name(s) would be too long for the source/destination folder", next time you copy using Windows Explorer or any back-up solution.

To correct both the path and filename that can be too long automatically use my "Path Tool Long Auto Fixer" tool.


Note: If you are back-up your data online to Onedrive, Gdrive and Dropbox they will complain if the path is too long, so you may want simply to make sure that you don't miss these by fix long paths automatically using "Path Tool Long Auto Fixer" tool.

How to find and list all Paths Too Long

Open a command line shell (Start->Run->cmd.exe  press return)

dir /s /b | sort /r /+261 > pathstoolong.txt
Open pathstoolong.txt to show all path too long for the current logged in user.

cd / 
dir /s /b | sort /r /+261 > pathstoolong.txt
to get to root drive.

This will list all directories and take a long time. Lines longer than 260 will get to the top of listing. Note that you must add 1 to SORT column parameter (/+n).

NOTE: This will take a very long time, 1/2hr to 1hr, since it's listing all your files on disk.



If number of directories returned is large then save you time and use "Path Tool Long Auto Fixer" to fix this automatically.

How to automatically fix Path Too Long error
If you find and fix many paths that are too long, or they are in many different sub-directories
and you want to keep your directory structure intact as much as possible, with out moving all those files into a new location. Use Path Tool Long Auto Fixer tool.

If you want to verify and find all filenames are that are too long, use Path Tool Long Auto Fixer tool.

If you want to never get the "The file name(s) would be too long for the source/destination folder" error, use Path Tool Long Auto Fixer tool.

If you want to guarantee not miss a file on your back-up to USB Drive, Onedrive, Gdrive and Dropbox they will complain if the path is too long, so you may want simply to make sure that you don't miss these by fix long paths automatically, use the Path Tool Long Auto Fixer tool.

What you want is to have a worry free way of finding an fixing these path tool long errors for good and automatically.


Path Too Long Auto Fixer Tool
I built "Path Tool Long Auto Fixer" tool to find and correct all your long paths AUTOmatically.

It fixes those long paths using a unique algorithm which makes paths and filenames still readable and memorable like removing spaces.
 

Removing space is an obvious optimization that quickly saves allot of space. There are slew of options. Check it out Path Tool Long Auto Fixer website.

It supports Unicode and therefore works in any language.



No comments:

Post a Comment