本帖最后由 pcl_test 于 2015-4-2 18:37 编辑
回复 1# luohao8810 - @echo off
- setlocal enabledelayedexpansion
- set "指定日期=20150402"
- for /f "delims=" %%a in ('dir /ad /b') do (
- set "修改日期=%%~ta"
- set "修改日期=!修改日期:~,4!!修改日期:~5,2!!修改日期:~8,2!"
- if "!修改日期!" == "%指定日期%" move "%%a" "E:\backup\"
- )
- pause
复制代码
|