In build events I need to copy the whole folder except one specific file. Is it possible?
Share
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.
XCopy supports an
/Excludeflag that will do what you want.From
help xcopy:So, you’ll make a file that contains a list of files to be excluded (one per line), and specify the exclusion file on your xcopy command line.
Robocopy also has file exclusion support.
From
robocopy /?:This doesn’t require an extra exclusion file. You specify a pattern, instead.