WAMSINC
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!
Any suggestions on an easy way to rename/move these files ?
thanks!
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.
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"
Use a util to identify the file names that are too long.
See this thread https://www.experts-exchange.com/questions/28580584/Long-File-Names-Utility.html and https://www.experts-exchange.com/questions/28817801/Utility-method-to-reduce-file-name-length.html for suggestions.
Once found then rename.
See this thread https://www.experts-exchange.com/questions/28580584/Long-File-Names-Utility.html and https://www.experts-exchange.com/questions/28817801/Utility-method-to-reduce-file-name-length.html for suggestions.
Once found then rename.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.tx t
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
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.tx
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$\rema iningpath\ \\destinationservername\C$ \remaining path\ /s /e /copyall /v /tee /log:c:\pathtoyourreportfi le.txt
robocopy \\sourceservername\C$\rema
ASKER
found a gui robocopy that worked great called robocop robocopy lol
thanks for the tip!
thanks for the tip!
“Long path tool” is very helpful for this problem. You can solve this problem like copy, delete, long path files by using this tool.