@echo off cd /d "%~dp0" echo ------------------------------------------------- Rem -----复制到目录----- set WorkDirectory_AppWebSite=WorkFlow\ set WorkDirectory_AppService=WorkFlow\Support\ Rem -----当前站点的目录----- set CurrPath_AppWebSite=WorkFlow.WebSite set CurrPath_AppService=WorkFlow.Support.Service Rem -----发布网站的根路径----- set TargetPath_AppWebSite=..\920_RealEstate.Publish\RealEstate.AppWebSite set TargetPath_AppService=..\920_RealEstate.Publish\RealEstate.AppService echo %CurrPath_AppService%... echo 复制:\%CurrPath_AppService%\程序集文件 xcopy /r /h /q /y %CD%\%CurrPath_AppService%\bin\*.dll %TargetPath_AppService%\bin\>nul echo 复制:\%CurrPath_AppService%\发布文件 xcopy /s /r /h /q /y /EXCLUDE:部署过滤条件.txt %CD%\%CurrPath_AppService% %TargetPath_AppService%\%WorkDirectory_AppService%>nul set WorkDirectory_AppService=WorkFlow\Instance\ set CurrPath_AppService=WorkFlow.Instance.Service echo %CurrPath_AppService%... echo 复制:\%CurrPath_AppService%\程序集文件 xcopy /r /h /q /y %CD%\%CurrPath_AppService%\bin\*.dll %TargetPath_AppService%\bin\>nul echo 复制:\%CurrPath_AppService%\发布文件 xcopy /s /r /h /q /y /EXCLUDE:部署过滤条件.txt %CD%\%CurrPath_AppService% %TargetPath_AppService%\%WorkDirectory_AppService%>nul echo %CurrPath_AppWebSite%... echo 复制:\%CurrPath_AppWebSite%\程序集文件 xcopy /r /h /q /y %CD%\%CurrPath_AppWebSite%\bin\*.dll %TargetPath_AppWebSite%\bin\>nul echo 复制:\%CurrPath_AppWebSite%\发布文件 xcopy /s /r /h /q /y /EXCLUDE:部署过滤条件.txt %CD%\%CurrPath_AppWebSite% %TargetPath_AppWebSite%\%WorkDirectory_AppWebSite%>nul copy /y %CD%\%CurrPath_AppWebSite%\Support\Components\CopyData\Web.config %TargetPath_AppWebSite%\%WorkDirectory_AppWebSite%Support\Components\CopyData\ copy /y %CD%\%CurrPath_AppWebSite%\Support\Materials\CopyData\Web.config %TargetPath_AppWebSite%\%WorkDirectory_AppWebSite%Support\Materials\CopyData\ copy /y %CD%\%CurrPath_AppWebSite%\Support\Processes\CopyData\Web.config %TargetPath_AppWebSite%\%WorkDirectory_AppWebSite%Support\Processes\CopyData\ copy /y %CD%\%CurrPath_AppWebSite%\Support\Roles\CopyData\Web.config %TargetPath_AppWebSite%\%WorkDirectory_AppWebSite%Support\Roles\CopyData\ echo ------------------------------------------------- echo 完成 set CommandType=%1% if /i not "%CommandType%" == "" goto Command_End echo ------------------------------------------------- for /L %%a in ( 3,-1,1 ) do ( echo %%a 秒钟后关闭... ping 127.1 -n 2 >nul ) @echo on :Command_End