webitservices
asked on
Vbscript help with BLAT command line email
Can someone please help with this smaill script. Basically I put it at the end of my scripts so that it will email me when finished. I can also take it one step further and attach files to emails such as logs with BLAT but in this case I am not doing it. I am sure the problem is with the single quotes and double quotes but me not knowing much about scripting is why I need an experts helps.
Any help would be appreciated.
Thanks,
Chad
Any help would be appreciated.
Thanks,
Chad
'Send email when done
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run"blat -to backups@myemail.com -subject "test 1 2 3" -body "test 1 2 3""
'clear out wshshell variable
set wshShell = nothing
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Works like a charm...thanks for your help!
Chad
Chad
No problem. Thanks for the grade.
Regards,
Rob.
Regards,
Rob.
ASKER
Open in new window