question

Marcus-9726 avatar image
0 Votes"
Marcus-9726 asked JennyYan-MSFT commented

Can Robocopy still work for long path name?

I'm about to migrate file server from Windows Server 2008 SP2 to Windows Server 2019 by using Robocopy. Before I do robocopy I'm trying to export out the permission using Get-ChildItem and script from https://social.technet.microsoft.com/wiki/contents/articles/51422.how-to-export-folder-permissions-to-excel-or-csv-file.aspx

However, during the export process I received error saying that the path are too long and it couldn't export out the permission. This issue I've created another question in Microsoft Q&A forum.

So for this one, can anyone kindly advise if I can still do the robocopy if the folder path names are too long? Because I'm going to ignore this and proceed with the Robocopy, just to avoid any issue came out during the copy process.

windows-server-infrastructure
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JennyYan-MSFT avatar image
0 Votes"
JennyYan-MSFT answered JennyYan-MSFT commented

Hi,

By default, ROBOCOPY will accept UNC pathnames including UNC pathnames over 256 characters long and it also provides a flag that lets you turn OFF support for long path names (flag: /256)

"/256 Turns off support for paths longer than 256 characters."
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy



If the Answer is helpful, please click Accept Answer and upvote it.

Thanks,
Jenny

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

May i know if there is any update for your question?

Hope the information provided is helpful and please feel free to let us know more assistance needed.



If the Answer is helpful, please click Accept Answer and upvote it. Thanks.

Thanks,
Jenny

0 Votes 0 ·