How can I copy Resources subdirectory to TargetDir after Build?
I tried:
copy “$(ProjectDir)\Resources” “$(TargetDir)”
but this copy files, not directory
EDIT
xcopy /s “$(ProjectDir)\Resources” “$(TargetDir)”
gives the same result
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try this:
/eparameter is used to indicate recursive copy (including empty directories)/yparameter is used so it overwrites files if you run it again\at the end of the destination otherwise xcopy doesn’t know whether you are specifying an output directory or an output file name.See also write a batch file to copy files from one folder to another folder