robocopy局域网拷贝
robocopy "D:\Backup" "F:\Backup" /E /maxage:1 /log+:"D:\Backup\%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%.txt"
局域网拷贝
rem 实现远程拷贝的批处理代码
rem 开始copy
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
set srcdir="E:\Doc"
set dstdir="\\192.168.30.111\d$\doc "
rem 使用共享文件夹
net use "\\192.168.30.111\d$\doc" "12345678" /user:Administrator
robocopy %srcdir% %dstdir% /e /s /xo
pause
rem 结束copy