Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Actually i need to copy 2 dlls form particular(bin) folder which contains 9files along with 2 subfolders.But I need to copy only 2dill files.While Im copying those 2 dll's from particular folder its not working for me.

What I have tried:

set mode=%1

if /I "%mode%" == "release" (
set value="Release"
set filter="*64.dll"
) else (
set value="Debug"
set filter="*64d.dll"
)
echo "Build Mode set as %value%"


<pre>//need to copy 64d.dll files??Its working fine

xcopy /s /y %~dp0\..\..\Main\customers\lib\%value%\%filter% %~dp0\..\..\build\windows\x64\%value% 


//need to copy 64.dll files

xcopy /s /y %~dp0\..\..\Main\customers\bin\%value%\%filter% %~dp0\..\..\build\windows\x64\%value% 
Posted
Updated 25-Oct-18 0:53am
v4
Comments
Richard MacCutchan 25-Oct-18 6:41am    
What is the question?
SureshMunna 25-Oct-18 6:49am    
64d.dll files are copying with that filter, but 64.dll(2files) are not copying
SureshMunna 25-Oct-18 6:48am    
second xcopy is not working with that filter
Richard MacCutchan 25-Oct-18 6:56am    
Edit your script and put "echo " in front of your xcopy commands. Run the script and you can see exactly what is being generated.
SureshMunna 25-Oct-18 6:57am    
ok

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900