View Full Version : WINDOWS NT backup (W2K)
Takavengwa
08-01-2006, 09:40 PM
Hi Guys
I would like to set up a script that sends an email to my account when backup is completed ,Iam using windows nt backup which does not have the functionality by default,any help will be appreciated
Well.... Script itself cannot send an EMail message. You have to use an application to do that, such as Outlook.
I am not sure how to do it in WScript, but in VBscript you can do it like this:
set outl=CreateObject("Outlook.Application")
set mmess=outl.createitem(0)
mmess.recipients.add("yourname@yourcompany")
mmess.subject="Backup is Done"
mmess.body="Hey... The backup is done"
mmess.send
The problem is that with so many viruses sending EMails, Windows Security will popup a box when you try to create the Outlook.Application object.
Takavengwa
08-02-2006, 06:21 PM
Thanks man for the contribution ,much appreciated.I have a further question however ,is it possible to attach a log file to the e-mail using the script so that its possible to check whether the backup has failed or succeeded.thanks again in advance,sorry iam a bit of a newbie at scripting
mmess.attachments.add("filename",,,)
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.