本帖最后由 lifei259 于 2017-11-10 14:17 编辑
- @echo off
- set a=%date:~0,4%%date:~5,2%%date:~8,2%-%time:~0,2%%time:~3,2%%time:~6,2%
- if exist AutoBackup*.max (
- for /f "delims=" %%a in ('dir /a-d/b, *.max') do (
- move %%a "d:\test\%a%.max"
- )
- ) else (
- ping 127.1 -n 10
- %0 )
- pause
复制代码
|