PSDeploy icon indicating copy to clipboard operation
PSDeploy copied to clipboard

Invoke-Robocopy FatalError with /xf parameter

Open mansh-av opened this issue 6 years ago • 0 comments

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

mansh-av avatar Dec 04 '18 10:12 mansh-av