linux脚本:前端代码上传下载

@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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值