::/定义原路径set source=seventrat_test_backend,seventrat_test_frontend::/定义目标路径set target=director1,director2,director3::/定义文件夹set folders=All,App_Browsers,bin,Htmls,Images,Properties,Scripts,Styles,Viewsfor %%s in (%source%) DO ( for %%t in (%target%) DO ( for %%f in (%folders%) DO ( ::set sp=%%s%%f xcopy "D:\SevenStar\%%s\%%f\*.*" "D:\SevenStar\%%t\%%s\%%f\" /s /h /d /c /y ) ))pause