In this blog post I will show you how to bypass windows 10 and Windows Server “path too long” limitation and error message that prevents you from copying files.
Below is the error message:
The file name(s) would be too long for the destination folder. You can shorten the file name and try again or try a location that has a shorter path.
To overcome this problem, we need to use PowerShell to copy the files since the is no way to copy the files using the GUI.
The following PowerShell command will copy the files without any issue.
Simply, change the path of the files and run using PowerShell.
Copy-Item "C:\bin\data" -Destination "C:\Data" -Recurse -Verbose