SET ROOT=%1 SET RESULT_FOLDER=_BUILD SET TARGET=%RESULT_FOLDER%\%ROOT% IF NOT EXIST RESULT_FOLDER (rmdir /Q /S RESULT_FOLDER) rmdir /Q /S %TARGET% xcopy /e /d /s /h /exclude:excludeCore31.txt %ROOT% %TARGET%\ mkdir %TARGET%\Views xcopy /e /d /s /h /exclude:excludeCore31Web.txt %ROOT%\Views\Main %TARGET%\Views\Main\