Skip to content

Instantly share code, notes, and snippets.

View MarcelMalik's full-sized avatar

Marcel MarcelMalik

View GitHub Profile
@MarcelMalik
MarcelMalik / robocopy.ps1
Created February 6, 2017 00:44 — forked from grenade/robocopy.ps1
Wrap robocopy in powershell to get standard (0/1) exit codes.
<#
.Synopsis
Robocopy wrapper with standard 0 (success) and 1 (failure) exit codes.
.Parameter source
Defines the source folder
.Parameter target
Defines the target folder
.Parameter include
Defines the files to include. Accepts wildcards. Eg: -include *.dll,*.pdb
Optional, Default value is $null and will include all files from source.