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://learn.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy
----------
If the Answer is helpful, please click Accept Answer and upvote it.
Thanks,
Jenny