PSDeploy
PSDeploy copied to clipboard
Invoke-Robocopy FatalError with /xf parameter
Invoke-Robocopy return the following error if used with /xf parameter (exclude) Invoke-Robocopy -Path 'D:\temp\11' -Destination 'D:\temp\22' -ArgumentList @('/XF *.dat')
same with relative path (.) before the exclude types and with absolute path
Invoke-Robocopy : FatalError
Invalid Parameter #3 : "/XF *.dat"
At D:\Scripts\Invoke-Robocopy.ps1:219 char:1
+ Invoke-Robocopy -Path 'D:\temp\11' -Destination 'D:\temp\22' -Argumen ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-Robocopy