ATS项目更新(4) 更新DLL到远程服务器

 

rem by jin tao
rem upload dll to ta1bbn01
rem 

rem @echo off
echo %time%
set time1 = %time:~0,2%%time:~3,2%%time:~6,2%

rem ** map drive clean(L: local, R: remote)
C:
cd ..\..\..\..\..\..\..\..\..\..\..\..\
subst L: /d
subst R: /d
net use L: /del
net use R: /del

rem set up ipc and map path
subst L: "D:\PublicViews\Automation_Framework\SQA_ATE_DEV\TestCaseSrc"
net use \\ta1bbn01\ipc$ "password" /useR:"domain\username"
net use R: \\ta1bbn01\RND\Automation\ATS\DLLS\Projects

rem copy file forcely to ta1bbn01
xcopy /C /F /R /Y "L:\MPC_E\MCMTS\v1\Alarms\bin\Debug" "R:\MPC-E\MCMTS\v1\Alarms"
xcopy /C /F /R /Y "L:\MPC_E\MCMTS\v1\Configuration\bin\Debug" "R:\MPC-E\MCMTS\v1\Configuration"
xcopy /C /F /R /Y "L:\MPC_E\MCMTS\v1\DataFlow\bin\Debug" "R:\MPC-E\MCMTS\v1\DataFlow"
xcopy /C /F /R /Y "L:\MPC_E\MCMTS\v1\Robustness\bin\Debug" "R:\MPC-E\MCMTS\v1\Robustness"
xcopy /C /F /R /Y "L:\MPC_E\MCMTS\v1\System\bin\Debug" "R:\MPC-E\MCMTS\v1\System"
tree /F "R:\MPC-E\MCMTS\v1"

xcopy /C /F /R /Y "L:\MPC_E\SDV\v1\Alarm\bin\Debug" "R:\MPC-E\SDV\v1\Alarm"
xcopy /C /F /R /Y "L:\MPC_E\SDV\v1\Alarm_NGOD\bin\Debug" "R:\MPC-E\SDV\v1\Alarm\NGOD"
xcopy /C /F /R /Y "L:\MPC_E\SDV\v1\Configuration\Configuration\bin\Debug" "R:\MPC-E\SDV\v1\Configuration"
xcopy /C /F /R /Y "L:\MPC_E\SDV\v1\Configuration\Configuration_NGOD\bin\Debug" "R:\MPC-E\SDV\v1\Configuration\NGOD"
xcopy /C /F /R /Y "L:\MPC_E\SDV\v1\System\bin\Debug" "R:\MPC-E\SDV\v1\System"
xcopy /C /F /R /Y "L:\MPC_E\SDV\v1\Robustness\Robustness\bin\Debug" "R:\MPC-E\SDV\v1\Robustness"
for %a in (Alarm Configuration System Robustness) do @tree /F "R:\MPC-E\SDV\v1\"%a

rem clear and clean
subst L: /d
subst R: /d
net use L: /del
net use R: /del
net use \\ta1bbn01\ipc$ /del

rem satistics
set time2 = %time:~0,2%%time:~3,2%%time:~6,2%
set /a time3 = %time2%-%time1%
set /a min = time3 / 60
set /a sec = time3 % 60
echo work time: %min% minutes %sec% seconds
@echo on
pause

 

 

过程:

R:\MPC-E\MCMTS\v1>
R:\MPC-E\MCMTS\v1>xcopy /C /F /R /Y "L:\MPC_E\SDV\v1\Alarm\bin\Debug" "R:\MPC-E\SDV\v1\Alarm"
L:\MPC_E\SDV\v1\Alarm\bin\Debug\MPCe.SDV_v1.Alarm.dll -> R:\MPC-E\SDV\v1\Alarm\MPCe.SDV_v1.Alarm.dll
L:\MPC_E\SDV\v1\Alarm\bin\Debug\MPCe.SDV_v1.Alarm.pdb -> R:\MPC-E\SDV\v1\Alarm\MPCe.SDV_v1.Alarm.pdb
L:\MPC_E\SDV\v1\Alarm\bin\Debug\MPCe.SDV_v1.Alarm.xml -> R:\MPC-E\SDV\v1\Alarm\MPCe.SDV_v1.Alarm.xml
3 File(s) copied

R:\MPC-E\MCMTS\v1>xcopy /C /F /R /Y "L:\MPC_E\SDV\v1\Alarm_NGOD\bin\Debug" "R:\MPC-E\SDV\v1\Alarm\NGOD"
L:\MPC_E\SDV\v1\Alarm_NGOD\bin\Debug\MPCe.SDV_v1.Alarm_NGOD.dll -> R:\MPC-E\SDV\v1\Alarm\NGOD\MPCe.SDV_v1.Alarm_NGOD.dll
L:\MPC_E\SDV\v1\Alarm_NGOD\bin\Debug\MPCe.SDV_v1.Alarm_NGOD.pdb -> R:\MPC-E\SDV\v1\Alarm\NGOD\MPCe.SDV_v1.Alarm_NGOD.pdb
2 File(s) copied

 

结果

R:\>cd R:\MPC-E\MCMTS\v1\

R:\MPC-E\MCMTS\v1>tree /F
Folder PATH listing for volume Home
Volume serial number is 0006EFC4 5AA4:BB95
R:.
├─Alarms
│      MPCE.MCMTS_v1.Alarms.dll
│      MPCE.MCMTS_v1.Alarms.pdb
│      MPCE.MCMTS_v1.Alarms.xml
│
├─DataFlow
│      MPCE.MCMTS_v1.DataFlow.dll
│      MPCE.MCMTS_v1.DataFlow.pdb
│      MPCE.MCMTS_v1.DataFlow.xml
│
├─Robustness
│      MPCE.MCMTS_v1.Robustness.dll
│      MPCE.MCMTS_v1.Robustness.pdb
│      MPCE.MCMTS_v1.Robustness.xml
│
└─Configuration
        MPCE.MCMTS_v1.Configuration.dll
        MPCE.MCMTS_v1.Configuration.pdb
        MPCE.MCMTS_v1.Configuration.xml


R:\MPC-E\MCMTS\v1>R:

R:\MPC-E\MCMTS\v1>cd R:\MPC-E\SDV\v1\

R:\MPC-E\SDV\v1>tree /F
Folder PATH listing for volume Home
Volume serial number is 0006EFC4 5AA4:BB95
R:.
├─Alarm
│  │  MPCe.SDV_v1.Alarm.dll
│  │  MPCe.SDV_v1.Alarm.pdb
│  │  MPCe.SDV_v1.Alarm.xml
│  │
│  ├─Data
│  │      Alarm_TC52602_Bcm.blf
│  │      Alarm_TC76588_Bcm.blf
│  │      Alarm_TC52602_Cvex.xml
│  │      Alarm_TC76588_Cvex.xml
│  │
│  └─NGOD
│          MPCe.SDV_v1.Alarm_NGOD.dll
│          MPCe.SDV_v1.Alarm_NGOD.pdb
│
├─System
│  │  System.dll
│  │  System.pdb
│  │  RpcWrapper.dll
│  │  Instr_SessionManager.dll
│  │  MPCE.SDV_v1.System.ISA.xml
│  │  MPCE.SDV_v1.System.NGOD.xml
│  │
│  └─Data
│          750_sessions_10G.xml
│
├─Robustness
│  │  Robustness.dll
│  │  Robustness.pdb
│  │  MPCe.SDV_v1.Robustness.xml
│  │  BBND.Instrument.Instr_BMR.dll
│  │  BBND.Instrument.Instr_BMR.pdb
│  │  BBND.Instrument.Instr_BMR.xml
│  │
│  └─Data
│          750_sessions_10G.xml
│          Robustness_TC52555_SBM.xml
│          Robustness_TC52573_SBM.xml
│          Robustness_TC52559_SBM_1.xml
│          Robustness_TC52559_SBM_2.xml
│          Robustness_TC52559_Step1_Bcm_1.blf
│          Robustness_TC52559_Step1_Bcm_2.blf
│          Robustness_TC52559_Step2_Bcm_1.blf
│          Robustness_TC52559_Step2_Bcm_2.blf
│
└─Configuration
    │  QcWrapper.dll
    │  QcWrapper.xml
    │  TestManager.exe
    │  TestManager.xml
    │  TestManager.Core.dll
    │  TestManager.Core.xml
    │  Interop.TDAPIOLELib.dll
    │  ICSharpCode.TextEditor.dll
    │  MPCe.SDV_v1.Configuration.dll
    │  MPCe.SDV_v1.Configuration.pdb
    │  MPCe.SDV_v1.Configuration.xml
    │
    ├─Data
    │      Robustness_TC52208_BCM.blf
    │      Robustness_TC52213_SBM.xml
    │
    └─NGOD
            MPCe.SDV_v1.Configuration_NGOD.dll
            MPCe.SDV_v1.Configuration_NGOD.pdb
            MPCe.SDV_v1.Configuration_NGOD.xml


R:\MPC-E\SDV\v1>

 

上一篇:ListView设置EmptyView的方法


下一篇:面向对象实战练习 | 手把手教你入门Python之七十七