批处理复制文件夹以及指定文件.bat --将指定项目打包到PROJECT对应目录下面。这里是用的C#项目方案
@echo off
echo 正在准备删除...
rd/s/q "Projects"
echo 正在生成目录...
md "Projects"
md "Projects/POS"
md "Projects/Manage"
md "Projects/AiDeployer"
md "Projects/BLServer"
echo 正在生成BLServer...
xcopy "CErp.BLServer/bin/Debug" "Projects/BLServer" /e /i /y /EXCLUDE:EXCLUDE.txt
echo 正在生成AiDeployer...
xcopy "CErp.AiDeployer/bin/Debug" "Projects/AiDeployer" /e /i /y /EXCLUDE:EXCLUDE.txt
echo 正在生成Server...
xcopy "CErp.Server/bin/Debug" "Projects/AiDeployer/Service" /e /i /y /EXCLUDE:EXCLUDE.txt
echo 正在生成POS...
xcopy "CErp.POS.Setup/AutoUpdater" "CErp.POS/bin/Debug/AutoUpdater" /e /i /y
xcopy "CErp.POS/bin/Debug" "Projects/POS" /e /i /y /EXCLUDE:EXCLUDE.txt
xcopy "CErp.POS.Setup/AutoUpdater" "Projects/POS/AutoUpdater" /e /i /y
echo 正在生成Manage...
xcopy "CErp.Manage.Setup/AutoUpdater" "CErp.Manage/bin/Debug/AutoUpdater" /e /i /y
xcopy "CErp.Manage/bin/Debug" "Projects/Manage" /e /i /y /EXCLUDE:EXCLUDE.txt
xcopy "CErp.Manage.Setup/AutoUpdater" "Projects/Manage/AutoUpdater" /e /i /y
@pause
过滤对应不复制的文件后缀:EXCLUDE.txt
------------------------------
.txt
.pdb
.xml
------------------------------