Closed skaravos closed 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.
$PSNativeCommandArgumentPassing="legacy"
Invoke-Robocopy.ps1
robocopy.exe
Hi skaravos.
Thank you for opening an issue. I will look into this on Saturday :)
There is a new release on both Github and PowerShell Gallery if you want to try it out @skaravos
It works, thanks!
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 theInvoke-Robocopy.ps1
script beforerobocopy.exe
is called.