@echo off
set disk=d:
REM o
for /f “tokens=2-4 delims=/ ” %%g in (“%date%”) do (
set _MyLog=%%g%%h%%i)
REM o
for /f “tokens=1-3 delims=:.” %%g in (“%time%”) do (
set _MyLog=%_MyLog%%%g%%h%%i)
REM W
rem echo %_MyLog%
del %disk%\ad\*.* /q
ntbackup backup systemstate /f “%disk%\ad\ad%_MyLog%.bkf”
@echo off
REM o
for /f “tokens=2-4 delims=/ ” %%g in (“%date%”) do (
set _MyLog=%%g%%h%%i)
REM o
for /f “tokens=1-3 delims=:.” %%g in (“%time%”) do (
set _MyLog=%_MyLog%%%g%%h%%i)
REM W
rem echo %_MyLog%
del %disk%\exch\*.* /q
ntbackup backup “@c:\exch.bks” /f “%disk%\exch\exch%_MyLog%.bkf” /m normal
REM o
for /f “tokens=2-4 delims=/ ” %%g in (“%date%”) do (
set _MyLog=%%g%%h%%i)
REM o
for /f “tokens=1-3 delims=:.” %%g in (“%time%”) do (
set _MyLog=%_MyLog%%%g%%h%%i)
REM W
rem echo %_MyLog%
del %disk%\file\*.* /q
ntbackup backup “@c:\file.bks” /f “%disk%\file\file%_MyLog%.bkf”
set disk=

@echo offset disk=d:REM o for /f “tokens=2-4 delims=/ ” %%g in (“%date%”) do ( set _MyLog=%%g%%h%%i)REM o for /f “tokens=1-3 delims=:.” %%g in (“%time%”) do ( set _MyLog=%_MyLog%%%g%%h%%i)REM W rem echo %_MyLog%
del %disk%\ad\*.* /qntbackup backup systemstate /f “%disk%\ad\ad%_MyLog%.bkf”
@echo offREM o for /f “tokens=2-4 delims=/ ” %%g in (“%date%”) do ( set _MyLog=%%g%%h%%i)REM o for /f “tokens=1-3 delims=:.” %%g in (“%time%”) do ( set _MyLog=%_MyLog%%%g%%h%%i)REM W rem echo %_MyLog%
del %disk%\exch\*.* /qntbackup backup “@c:\exch.bks” /f “%disk%\exch\exch%_MyLog%.bkf” /m normal
REM o for /f “tokens=2-4 delims=/ ” %%g in (“%date%”) do ( set _MyLog=%%g%%h%%i)REM o for /f “tokens=1-3 delims=:.” %%g in (“%time%”) do ( set _MyLog=%_MyLog%%%g%%h%%i)REM W rem echo %_MyLog%
del %disk%\file\*.* /qntbackup backup “@c:\file.bks” /f “%disk%\file\file%_MyLog%.bkf”
set disk=

Views: 4