Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you automate copying file with path too deep issues in Windows?

Tags:

copy

windows

I want to be able to selectively copy a list of files and preserve their directory structure. The problem is that there are quite a few files that their path exceeds 256 character. How is this problem usually handled?

Edit: I should make it clear that I only want to selectively copy files, not folders. I don't think robocopy can be efficiently used to copy an individual file and it's folder structure effectively.

like image 331
llamaoo7 Avatar asked Dec 10 '22 22:12

llamaoo7


1 Answers

Robocopy, part of the Windows Resource Kit, is designed to handle such cases.

like image 117
Sören Kuklau Avatar answered May 19 '23 01:05

Sören Kuklau