Windows Scripting – Output date in user configured format

set thedate=%date:~6,4%-%date:~3,2%-%date:~0,2% set thetime=%time:~0,2%%time:~3,2% For Example: =%date:~6,4% Outputs the date, then takes 4 characters from the 6th Character. Depending on location: Date will show DD-MM-YYYY Sp: %date:~6,4% = YYYY %date:~3,2% = MM...

Robocopy with logs

set thedate=%date:~6,4%-%date:~3,2%-%date:~0,2% set thetime=%time:~0,2%%time:~3,2% set thelog=RoboCopyReport-%thedate%_%thetime%.txt set source=I:\ set destination=Y:\ robocopy %source% %destination% /E /ZB /DCOPY:T /COPYALL /R:1 /W:1 /V /TEE /XD $Recycle.bin /XD...

E-mail copy of latest NTBackup log

Issue: E-mail the latest NTBackup log. Method: 2 step script – first creates a copy of the latest log, second step e-mails via blat. Scipt: # LINE 1 # pushd C:Documents and SettingsAdministratorLocal SettingsApplication DataMicrosoftWindows NTNTBackupdata  ...

Email latest NT Backup Script

:: Created By Joe Davis :: http://josephmdavis.com/?p=35 :: This script will email the latest backup logfile to a specified user or group. :: http://www.petri.co.il/forums/showthread.php?t=23825 @echo off set _SCRIPTNAME= set _LOGLOCATION= set _Text2Mail= set...