@echo off
net use \\[IP] /user:"[Name]" [PassWord]
xcopy /y /e \\[IP]\[路径] [复制至xx路径]
pause
比如
@echo offnet use \\192.168.2.29 /user:"admin" 123
xcopy /y /e \\192.168.2.29\SoftWare\winSW\* C:\Users\admin2\Documents\
pause
在
使用用户名 admin 密码 123 访问 192.168.2.29
复制 192.168.2.29的 SoftWare\WinSW\* WinSW文件夹下的所有文件
至 C:\Users\admin2\Documents\