Archív značiek: copy

for cycle in .bat for copying multiple dll

@echo off
SET Target=%1
SET Source=%2

ECHO Copying Spgen assemblies to bin directory…
ECHO XCOPY.EXE %Source% %Target%SharedSpgen /R /Y
XCOPY.EXE %Source% %Target%SharedSpgen /R /Y

for /r %~dp2 %%g in (*.dll) do XCOPY.EXE %%g %Target%SharedSpgen /R /Y

If ErrorLevel 1 GoTo ErrorHandler

GOTO Done
:ErrorHandler
ECHO ERRORS executing post-build steps for Spgen project
Set ErrorLevel=1
:Done