2025-03-28 09:49:56 +08:00

37 lines
1.1 KiB
Batchfile

@echo off
cd /d "%~dp0"
echo -------------------------------------------------
Rem -----当前站点的目录-----
set CurrPath_AppWebSite=SoftWare.WebSite
set CurrPath_AppService=SoftWare.WebSite
Rem -----发布网站的根路径-----
set TargetPath_AppWebSite=..\920_RealEstate.Publish\RealEstate.AppWebSite
set TargetPath_AppService=..\920_RealEstate.Publish\RealEstate.SoftWare
echo RealEstate.SoftWare...
echo 复制:\%CurrPath_AppService%\发布文件
xcopy /s /r /h /q /y /EXCLUDE:部署过滤条件.txt %CD%\%CurrPath_AppWebSite% %TargetPath_AppService%\
echo 复制:\%CurrPath_AppWebSite%\程序集文件
xcopy /r /h /q /y %CD%\%CurrPath_AppWebSite%\bin\*.dll %TargetPath_AppWebSite%\bin\
xcopy /r /h /q /y %CD%\%CurrPath_AppWebSite%\AppRuns\TestApp\Bin\*.config %TargetPath_AppWebSite%\SoftWare\AppRuns\TestApp\Bin\
rd /q /s %TargetPath_AppService%\bin
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