set BACKUP_DIR=D:\backup
set FILE_NAME=nm_orcl
for /f "tokens=1,2" %%a in ('date/t') do set TODAY=%%a
set BACK_NAME=%FILE_NAME%_%TODAY%_
set BACK_FULL_NAME=%BACKUP_DIR%\%BACK_NAME%
copy "%BACK_FULL_NAME%back.rar" "D:\back1"
forfiles /p "D:\back1" /M *.rar /D -0 /C "cmd /c del @path"
pause
文件复制
最新推荐文章于 2021-05-11 09:44:55 发布