Dealing with long file and path names - Copy-Item

Good Afternoon all,

I have a powershell script that deals with leavers - it utilizes the copy-item cmdlet but occasionally I get a copy error about long file or path names.  Please could you let me know if there is anything I can use or an alternative method to deal with this?

Thanks for any help.

Parents
No Data
Reply
  • Use FastCopy, it started out as an open source project, but is still free and works great: https://fastcopy.jp/en/

    GUI/Command line that handles any copy job I've thrown at it so far.  My only complaint is that it's command line doesn't appear to have a switch to "Displays files that would be copied", where XCOPY's /L switch is great for versioning via script prior to the actual copy.

Children
No Data