long file names cant copy

hello experts I have about 10k files Im moving off one share to another, but windows explorer wont copy them because the names/path is too long. I found a hotfix on line but further research indicated it broke more stuff than it fixed so I was afraid to install that rollup.

Any suggestions on an easy way to rename/move these files ?

thanks!
WAMSINCAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

William FulksSystems Analyst & WebmasterCommented:
Last time I ran into this, I just mapped drives to the destination and source folders. Like X: and Y: - then just copied from one to the other.
WAMSINCAuthor Commented:
I just tried your suggestion and still getting the same error message "the source file name is larger than supported by this file system"
dbruntonQuid, Me Anxius Sum?  Illegitimi non carborundum.Commented:
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

oBdACommented:
Just use robocopy, preferably either on the source or target server; it doesn't have problems with long file names.
Example (note that the first argument is source folder, the second is the target folder, then the file mask):
robocopy.exe "D:\Data" "\\Server\Share\Data" *.* /e /copy:DAT /r:0 /np

Open in new window

If you want to copy with permissions, then instead of /copy:DAT, use either /copy:DATSOU, or /copyall.
For further options, enter "robocopy /?".

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
FOXActive Directory/Exchange EngineerCommented:
Wamsinc,
Use oBda's method. You will get all the data over with the long file paths.  

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

you want to go with  /s /e /copyall /v /tee /Log:c:\temp\copyreport.txt

the /v -will show you what files were skipped if any
the /tee will have output on your monitor as well as in the .txt file that I have redirected to that you can look at later.
/copyall will give you the acls, attributes, security, owner, and timestamps from the original source
/s -subdirectories
/e-empty directories
FOXActive Directory/Exchange EngineerCommented:
You may not need the quotation marks at all.  If it throws an error when you first run it just go with

robocopy \\sourceservername\C$\remainingpath\  \\destinationservername\C$\remainingpath\  /s /e /copyall /v /tee /log:c:\pathtoyourreportfile.txt
WAMSINCAuthor Commented:
found a gui robocopy that worked great called robocop robocopy lol
thanks for the tip!
Ross GramCommented:
“Long path tool” is very helpful for this problem. You can solve this problem like copy, delete, long path files by using this tool.
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 OS

From novice to tech pro — start learning today.