Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoke-Robocopy FatalError with /xf parameter #118

Open
mansh-av opened this issue Dec 4, 2018 · 0 comments
Open

Invoke-Robocopy FatalError with /xf parameter #118

mansh-av opened this issue Dec 4, 2018 · 0 comments

Comments

@mansh-av
Copy link

mansh-av commented Dec 4, 2018

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant