Does Win 8 support long path names?

Started Apr 6, 2013 | Discussions thread
Shop cameras & lenses ▾
Sean Nelson
Forum ProPosts: 11,266
Re: Does Win 8 support long path names?
In reply to migibson99, Apr 7, 2013

migibson99 wrote:

Dude, you need to chill out.  You're getting way to worked up about this.

I understand his frustration.   For example if you're copying a DVD folder structure or unpacking a zip file into to a nested directory on your hard drive, it may take quite a long time to copy a ton of files before the system hits the one that exceeds the path length and dies on you.

One solution is to do the copy into the root folder of the target drive, then try to simply move the results into the folder you want.   If the move fails, you've still got all the files and you can choose a different folder to move them into.

If you know a scripting language like PowerShell then it's fairly easy to find the longest pathname in a folder structure.   For example, if you have a DVD in your "D:" drive that you're planning to copy, you can use this PowerShell command to get the name and length of the file with the longest path name:

get-childitem d: -recurse | foreach { $_.FullName } | sort length | select -last 1 | foreach {
write-host "Longest path is:" $_.Length "characters"; write-host "Longest name is:" $_ }

For example, if this shows you that the longest path name on the DVD drive is 200 characters, then you won't be able to copy it into a hard drive folder whose full path is more than 60 characters long (200 + 60 = 260, the path limit).

Reply   Reply with quote   Complain
Keyboard shortcuts:
FForum PPrevious NNext WNext unread UUpvote SSubscribe RReply QQuote BBookmark post MMy threads
Color scheme? Blue / Yellow