Link to home
Start Free TrialLog in
Avatar of WAMSINC
WAMSINCFlag for United States of America

asked on

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!
Avatar of William Fulks
William Fulks
Flag of United States of America image

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.
Avatar of WAMSINC

ASKER

I just tried your suggestion and still getting the same error message "the source file name is larger than supported by this file system"
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
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
Avatar of WAMSINC

ASKER

found a gui robocopy that worked great called robocop robocopy lol
thanks for the tip!
Avatar of Ross Gram
Ross Gram

“Long path tool” is very helpful for this problem. You can solve this problem like copy, delete, long path files by using this tool.