sbergwall / RobocopyPS

RobocopyPS
MIT License
51 stars 9 forks source link

PS v5: Issue using multiple paths in Get-RoboItem #11

Closed sbergwall closed 2 years ago

sbergwall commented 2 years ago

Using multiple paths in Get-RoboItem results in error. This error only occur in PS 5 but works in PS 7.

Get-RoboItem -Path 'C:\tmp\New folder\',"C:\AMD\"

Get-RoboItem : Cannot bind parameter because parameter 'Path' is specified more than once. To provide multiple values to parameters that can accept multiple values, use the array syntax. For example, "-parameter value1,value2,value3". At line:1 char:1

Get-RoboItem : Cannot bind parameter because parameter 'Path' is specified more than once. To provide multiple values to parameters that can accept multiple values, use the array syntax. For example, "-parameter value1,value2,value3". At line:1 char:1