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

时间:2015-05-22 22:25:59   收藏:0   阅读:174

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

 

@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
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!