File name(s) too long for destination folder on file share migration.

So I'm trying to move some data from an older system running Server 2003 Standard to a newer one running Server 2012 Standard R2. Both domain controllers right now (the 2012 server is new and was recently promoted to DC; the old server will eventually be completely decommissioned).

The old server is mostly just a file server. What I'm trying to do for the majority of file shares is a simple copy/paste over the network from old server to new server (after making sure the files/folders on the old server aren't currently being accessed). Problem is, in doing that, I'm getting the "file name(s) too long for destination" message on several of the files. And yes, there are quite a few files on here with really long names, but we're talking about a directory structure with hundreds of thousands of folders/files under it, and the only option I get when the above error pops up is to skip the problem files, which I obviously don't want to do.

Is there some way to just automatically truncate the filenames during the transfer or something? I feel like this should be fairly simple, but I can't really find anything that can automate what I want to do.
jhighwindAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Larry Struckmeyer MVPCommented:
Hi:

Robocopy will do this.  It is simple to use and will only copy the newer or non existing files from A to B.

https://technet.microsoft.com/en-us/library/cc733145.aspx
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2012

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.