@echo off echo %~n0.bat start... ::(x.1)获取basePath set curPath=%cd% cd /d "%~dp0" cd /d ..\..\.. set basePath=%cd% ::(x.2) set publishPath=%basePath%\Publish\release\release\Station(net5.0) set dockerPath=%basePath%\Publish\release\release\docker-deploy rd /s /q "%dockerPath%" ::(x.3)copy dir xcopy "%basePath%\Publish\ReleaseFile\docker-deploy" "%dockerPath%" /e /i /r /y ::(x.4)copy station xcopy "%publishPath%\ServiceCenter\appsettings.json" "%dockerPath%\sers" xcopy "%publishPath%\Gateway\appsettings.json" "%dockerPath%\sers-gateway" xcopy "%publishPath%\Gover\appsettings.json" "%dockerPath%\sers-gover" xcopy "%publishPath%\Demo\appsettings.json" "%dockerPath%\sers-demo" xcopy "%publishPath%\Robot\appsettings.json" "%dockerPath%\sers-demo-robot" xcopy "%basePath%\Publish\release\release\压测\单体压测net5.0\ServiceCenter\appsettings.json" "%dockerPath%\sers-demo-sersall" echo %~n0.bat 执行成功! cd /d "%curPath%"