Cloud Networks Support Centre

Search for answers to your questions by entering keywords below, or look through our Support Centre FAQ's.

Need help? Call us on 1300 208 155.

How to copy files when the destination path is too long

Follow

Are you getting an error stating "Destination Path too long" when you are copying files from one destination to another? This occurs because Windows do not accept file path with more than 256 characters by default, and you are trying to copy a file to a location that has a long path name. Read further to see how to copy the files across:

 

Scenario: 

  1. For example, we want to copy CopyMe123321.txt from Downloads to

    H:\TestingLongPathLevel1\TestingLongPathLevel2xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxTestingLongPathLevel3\


  2. As the destination path is longer than 260 characters, Windows will prompt a warning dialog "Destination Path too long".mceclip0.png
  3. There are 2 simple ways to resolve the above issue.

 

Solution 1: 

  1. Rename the parent folder.
  2. If the folder name can be renamed, simply rename it to a shorter path, in this case, we can rename the long path name to: H:\TestingLongPathLevel1\TestingLongPathLevel2\TestingLongPathLevel3\
  3. After the adjustment, We can copy CopyMe123321.txt from Downloads to the above destination!

 

Solution 2:

  1. If you are not able to make changes to the parent's folder path name, you will need to Map a network drive to the destination folder.
  2. Open File Explorer and navigate to "This PC".
  3. From Computer tab, Select Map Network Drive.mceclip1.png

  4. Map Network Drive dialog box will show up:mceclip2.png

  5. Select a drive letter, I have picked "U" in my case.
  6. Browse to the destination folder that you would like to paste your file. In my case: H:\TestingLongPathLevel1\TestingLongPathLevel2xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxTestingLongPathLevel3\
  7. Click Finish.
  8. You should see a new window with the mapped drive.
  9. Copy CopyMe123321.txt from Downloads to the mapped drive and it will appear in the original destination folder as well!
Was this article helpful?
0 out of 0 found this helpful

Comments