zoukankan      html  css  js  c++  java
  • cmd for 循环拷贝文件

    这几天忙活部署测试环境, 中途需要拷贝 文件, 直接贴code吧:

    ::/定义原路径
    set source=seventrat_test_backend,seventrat_test_frontend
    ::/定义目标路径
    set target=director1,director2,director3
    ::/定义文件夹
    set folders=All,App_Browsers,bin,Htmls,Images,Properties,Scripts,Styles,Views
    for %%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
  • 相关阅读:
    学习笔记::有上下界的网络流
    zoj2314
    bzoj3261
    bzoj 1898
    bzoj4009
    bzoj4033
    bzoj3389
    bzoj2427
    uva 11825
    交换A与B值的四种方法
  • 原文地址:https://www.cnblogs.com/majiang/p/6217018.html
Copyright © 2011-2022 走看看