首页 > 其他 > 详细

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

时间:2017-11-02 17:51:53      阅读:314      评论:0      收藏:0      [点我收藏+]

 

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

 

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

原文:http://www.cnblogs.com/kill0001000/p/7773134.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!