本帖最后由 pcl_test 于 2016-11-18 21:14 编辑
- @echo off
- for /l %%a in (201501 1 201512) do (
- xcopy "D:\zhaopian\%%a\photoshop" "D:\BAK\%%a\photoshop\" /s /y 2>nul
- )
- pause
复制代码
- @echo off
- set "源文件夹=D:\zhaopian"
- set "目标文件夹=D:\bak"
- for /f "delims=" %%a in ('dir /ad/b "%源文件夹%"') do (
- xcopy "%源文件夹%\%%a\photoshop" "%目标文件夹%\%%a\photoshop\" /s /y 2>nul
- )
- pause
复制代码
|