1@echo off 2set _arch=%1 3set _arch=%_arch:Win32=x86% 4copy %2"\Redist\D3D\"%_arch%"\d3dcompiler_47.dll" %3 > NUL 5:: This is equivalent to `touch', see: 6:: https://technet.microsoft.com/en-us/library/bb490886.aspx 7:: This avoids rerunning because this batch file is also copied to the gen dir, 8:: so it's timestamp would otherwise be newer than the dll. 9copy /b %3\d3dcompiler_47.dll+,, %3\d3dcompiler_47.dll > NUL 10