标签:
@echo off
echo.
echo 正在执行差异备份,请稍候 ...
set source=%cd%
set destination="d:\backup"
set log=%temp%\备份日志.log
set application=notepad.exe %log%
dir %destination%>%log%&&type %log%|find %destination%||mkdir %destination%
xcopy %source% %destination% /E /F /D /C /Y /L >%log%
for /f "delims=:" %%i in (‘findstr /n .* %log%‘) do (
set
line=%%i
)
if %line% LEQ 1 goto :eof
xcopy %source% %destination% /E /F /D /C /Y
start %application%
:eof
echo 备份完成!!
ping -n 2 127.0.0.1 >nul
标签:
原文地址:http://www.cnblogs.com/lbnnbs/p/4781491.html