@echo off
::Check that the aff-pcui directory exists and delete it if it does.
if exist E:\JarPackage\aff-pcui\ rd /s /q E:\JarPackage\aff-pcui\
:: Run SFXCL - downlaod .jar files from remote to local folder:
echo.Download the file to the local directory,please wait..
sfxcl /S "192.168.24.44_TW_前端" /app/local/aff-pcui E:\JarPackage\ > nul 2>&1
::check the download status.
if %errorlevel% == 0 goto SUCCESS else goto FAILURE
:SUCCESS
echo.The file download complete from server 10.203.24.44.
::echo "Do you want to continue upload to UAT?"
::set /p upload="please choose Y or N:"
set upload=Y
if NOT %upload%==Y goto END else echo.Prepare to upload the file to uat,please wait..
goto UPLOAD
:FAILURE
echo.Transfer Failure.
goto END
:UPLOAD
:: Run SFXCL - upload .jar files from local to remote folder:
sfxcl E:\JarPackage\aff-pcui /S "192.168.1.206" /home/sfapp/ >nul 2>&1
::check the file upload status.
if %errorlevel% == 0 (
echo.The jar package upload to server 192.168.1.206 successful.) else (
echo.The jar package upload to server 192.168.1.206 failure.)
:: Run SFXCL - upload .jar files from local to remote folder:
sfxcl E:\JarPackage\aff-pcui /S "192.168.1.207" /home/sfapp/ >nul 2>&1
::check the file upload status.
if %errorlevel% == 0 (
echo.The jar package upload to server 192.168.1.207 successful.) else (
echo.The jar package upload to server 192.168.1.207 failure.)
:END
echo.Press any key to exit this script.
pause>nul
linux脚本:前端代码上传下载
最新推荐文章于 2022-02-05 13:46:16 发布