sbergwall / RobocopyPS

RobocopyPS
MIT License
51 stars 9 forks source link

Incompatible with PowerShell 7.3+ #21

Closed skaravos closed 1 year ago

skaravos commented 1 year ago

Hey there,

I noticed this module is incompatible with PowerShell 7.3+. After some testing I determined it's due to the change to native program argument parsing.

It seems that this module can be trivially fixed by adding $PSNativeCommandArgumentPassing="legacy" into the Invoke-Robocopy.ps1 script before robocopy.exe is called.

sbergwall commented 1 year ago

Hi skaravos.

Thank you for opening an issue. I will look into this on Saturday :)

sbergwall commented 1 year ago

There is a new release on both Github and PowerShell Gallery if you want to try it out @skaravos

skaravos commented 1 year ago

It works, thanks!