Skip to content

Instantly share code, notes, and snippets.

@grenade
Created December 2, 2013 13:26
Show Gist options
  • Save grenade/7749395 to your computer and use it in GitHub Desktop.
Save grenade/7749395 to your computer and use it in GitHub Desktop.
Param(
[string] $source,
[string] $target,
[string] $fat_args = "/FFT /Z /XA:H /W:5"
[switch] $mirror
)
if ($mirror) {
Invoke-Expression ("robocopy {0} {1} /MIR {2}" -f $source, $target, $fat_args)
}
else {
Invoke-Expression ("robocopy {0} {1} {2}" -f $source, $target, $fat_args)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment