I've set up a scheduled task to run the follow in a .bat file. It's working beautifully, but now I want it to send me an email containing the install log file. Here's what I have:
bitsadmin.exe /transfer "Update NXT Beta" /download 1https://dl.dropboxusercontent.com/s/somestuff/setup.exe c:\setup.exe
START C:\setup.exe /autoupdate
setup.exe then exports a log file into its root directory. I want to grab that and email it to myself if I can. Any help is appreciated.
This example would send an email to
[email protected] (from the same address) using an trusted/relay enabled connection to the local mail server: