[BAT] xcopy拷贝远程服务器共享文件到本地

net use * /del /yes

NET USE Y: \10.86.17.243d$ Autotestpassword /user:MSDOMAIN1doautotester

set sourcePath="Y:DOAutomationTestautomation_do_scriptlibrary_soapuiCompare Test and Benchmark EnvironmentVersion 1direct"

set targetPath="C:Program FilesSmartBearReadyAPI-1.9.0inscriptsdirect"

pushd %sourcePath%

xcopy %sourcePath%*.groovy %targetPath% /R /Y

net use * /del /yes

pause

原文地址:https://www.cnblogs.com/MasterMonkInTemple/p/7007674.html