Created
May 28, 2016 06:45
-
-
Save JBlond/540b897ac036b1a951d35498949d2b4e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal enabledelayedexpansion | |
set SOURCE_DIR=C:\build\subversion-1.9.3-ap24-x86 | |
set DEST_DIR=C:\build\subversion-1.9.3-ap24-x86_pdb | |
set FILENAMES_TO_COPY=*.pdb | |
for /R "%SOURCE_DIR%" %%F IN (%FILENAMES_TO_COPY%) do ( | |
if exist "%%F" ( | |
set FILE_DIR=%%~dpF | |
set FILE_INTERMEDIATE_DIR=!FILE_DIR:%SOURCE_DIR%=! | |
xcopy /E /I /Y "%%F" "%DEST_DIR%!FILE_INTERMEDIATE_DIR!" | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment