下面是
Move all files except some (file pattern) from a DOS command
我希望将所有文件从发行版dir复制到带有该批处理文件的部署dir:
echo off
set "source=.\EasyRun\bin\Release\"
set "destination=C:\temp\EasyRun\"
IF exist %destination% rd %destination% /s /Q
IF exist %source% ( echo "OK release") ELSE ( echo "NO Realease DIR "%source% && pause && exit )
dir /b /a-d %source%|findstr /b "vshost" > excludeList.txt
xcopy /s %source%"*.exe" %destination% /exclude:excludeList.txt
xcopy /s %source%"*.dll" %destination%
echo "OK!!"
Pause这里有两个问题:

谢谢
发布于 2016-01-14 10:30:36
它可能是由空的excludeList.txt引起的。->尝试输入一个虚拟条目
我对xcopy和网络共享有一些问题。(由于延迟、访问限制,.)
我推荐使用/xf选项的机器人复制。例如,/xf vshost,/MT:N多线程副本也应该加速复制过程。
https://stackoverflow.com/questions/34491582
复制相似问题