maurice-daly / DriverAutomationTool

Home of the Driver Automation Tool
https://www.msendpointmgr.com
BSD 2-Clause "Simplified" License
395 stars 120 forks source link

Swap to robocopy #512

Open starostkadk opened 11 months ago

starostkadk commented 11 months ago

If possible I would recommend to change the copy file function to use robocopy instead. I see a lot of paths too long, and robocopy doesnt really care about that.

nodiaque commented 7 months ago

robocopy also care about it, it just depend how you call it. if you simply use long path format \?... you can forgot path too long. Right now, it's using powershell copy-item command which isn't an external tool but built-in command of powershell. Less dependancy this way.

But if powershell cannot access to place you are trying to set because it's too long, you'll have problem with SCCM too. SCCM doesn't play well with long path, not all API have migrated to the long path format (already open a case on that with them a long time ago >6 years and it's still active).