Skip to content

Instantly share code, notes, and snippets.

View jmd's full-sized avatar

Jean-Marc Dressler jmd

  • Objectik
  • France
View GitHub Profile
@jmd
jmd / brocopy.bat
Created January 6, 2017 09:16
Robocopy wrapper fixing return code issue
REM ============================================================
REM Wrapper for robocopy fixing the exit code issue
REM
REM Robocopy can return a non zero exit code even when there is
REM no error which can be problematic when integrated in a build
REM tool chain.
REM
REM Brocopy addresses that issue by calling robocopy but
REM returning 0 when successfull and 1 otherwise.
REM ============================================================