Skip to content

Instantly share code, notes, and snippets.

@irwins
Last active Mar 18, 2016
Embed
What would you like to do?
RoboCopyExitCodes.ps1
[Flags()] Enum RoboCopyExitCodes{
NoChange = 0
OKCopy = 1
ExtraFiles = 2
MismatchedFilesFolders = 4
FailedCopyAttempts = 8
FatalError = 16
}
(0..16).ForEach{
[PSCustomObject]@{
Number = $_
ExitCodes = [RoboCopyExitCodes]$_
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment