E14– Windows Server Backup on DAG–Part3–Notify DB Status before process WSB
1.
echo off For /f "tokens=1-3 delims=/ " %%a in ('date /t') do (set date=%%a-%%b-%%c) rem echo The date is %date% Rem ================================== Rem ================================== Rem ================================== Timeout /T 100 Rem ================================== echo. Start:%date% %time% >> %backuplog% Rem ================================== rem pause Rem ================================== For /f "tokens=1-3 delims=/ " %%a in ('date /t') do (set date=%%a-%%b-%%c) echo. Start:%date% %time% >> %backuplog% Rem ================================== Rem ================================== |
2. Cscript C:\Batch\WSB\DB_Active_Notify.vbs
Rem ================================== |
3. Location of DB_Active_Notify.vbs
4. DB_Active_Notify.vbs
On Error Resume Next Set net = CreateObject("WScript.Network") strText = objTextFile.ReadAll m=Month(Now) If (m<10) Then sDate = Y & M & D objTextFile.Close |
6.
del "C:\Batch\WSB\DB_Activation_Log\DB_Activation.txt" |
7.
Timeout /T 100 |
Comments
Post a Comment