in reply to Re: File name is long to copy
in thread File name is long to copy

Your problem is almost certainly Windows

I think the problem is almost certainly a typo - but only because, having replicated the OP's file structure (as specified by his code), I can find no problem with it on Windows 7.
OP's script works fine for me, as is.

Either way, it would be interesting to know precisely which it is, but I'm not confident that we'll find out.

Cheers,
Rob

Replies are listed 'Best First'.
Re^3: File name is long to copy
by jcb (Parson) on Apr 28, 2020 at 23:52 UTC

    The example paths in OP's code look sanitized to me and I suspect that the real file names are much longer. I have had these kinds of errors occur at $WORK with mapped network drives in the past and the solution I used then was to simply map another drive letter to a subfolder and access the deeply nested directories that way.