by Tiempo | Apr 10, 2014 | Scripts
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...
by Tiempo | Apr 10, 2014 | Scripts
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...
by Tiempo | Oct 22, 2012 | Backup, Scripts
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 ...
by Tiempo | Oct 16, 2012 | Backup, Scripts
:: 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...