Batch 拷贝远程机器文件到本机指定目录下

 

net use * /del /yes
NET USE Y: \\远程机IP\d$  登录密码 /user:domain\登录用户

set sourcePath="Y:\DOAutomationTest\automation_do_scriptlibrary_soapui\Compare Test and Benchmark Environment\Version 1\direct"
set targetPath1="C:\Program Files\SmartBear\ReadyAPI-1.9.0\bin\scripts\direct"
set targetPath2="C:\Program Files\SmartBear\ReadyAPI-1.3.1\bin\scripts\direct"
del /Q %targetPath1%
del /Q %targetPath2%

pushd %sourcePath%
xcopy %sourcePath%\*.groovy %targetPath1% /R /Y
xcopy %sourcePath%\*.groovy %targetPath2% /R /Y


set sourcePath2="Y:\DOAutomationTest\automation_do_scriptlibrary_soapui\JARs"
set targetPath4="C:\Program Files\SmartBear\ReadyAPI-1.9.0\lib"
set targetPath5="C:\Program Files\SmartBear\ReadyAPI-1.3.1\lib"

pushd %sourcePath2%
xcopy %sourcePath2%\jsonassert*.jar %targetPath4% /R /Y
xcopy %sourcePath2%\jsonassert*.jar %targetPath5% /R /Y


net use * /del /yes
pause

 

posted @ 2017-11-02 17:00  kill0001000  阅读(503)  评论(0编辑  收藏  举报