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) For /f "tokens=1-2 delims=: " %%a in ('time /t') do (set time=%%a:%%b) rem echo The date is %date% rem echo The time is %time% Rem ================================== PowerShell.exe -command ". C:\Batch\WSB\PS_RedistributeActiveDatabase_before-WSB.ps1" Rem ================================== Cscript C:\Batch\WSB\DB_Active_Notify.vbs Rem ================================== del "C:\Batch\WSB\DB_Activation_Log\DB_Activation.txt" Timeout /T 100 Rem ================================== Rem ================================== set backuplog="c:\batch\WSB\BackupLog\"%computername%-WSB.txt"" echo. Start:%date% %tim...