首页 > 其他 > 详细

备份指定目录日期为最新的文件

时间:2015-05-22 22:25:59      阅读:173      评论:0      收藏:0      [点我收藏+]

备份指定目录日期为最新的文件

 

@echo off
start /d D:\MyProgram\MyMoneyMaster /wait D:\MyProgram\MyMoneyMaster\mymoneymaster.exe
del /q /f "%temp%\m3.txt"
dir /b /o:-d D:\MyProgram\MyMoneyMaster\backup\*.bk3 > "%temp%\m3.txt"
set /p newfile=<"%temp%\m3.txt"
D:\MyProgram\SysinternalsSuite\7za.exe a "E:\快盘\m3Base\%date%.7z" D:\MyProgram\MyMoneyMaster\backup\%newfile%
exit

备份指定目录日期为最新的文件

原文:http://www.cnblogs.com/Tty725/p/4523382.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!