Hi all,
Need a little help with a simple little batch file script.
I currently backup some data using a small Windows Batch script (code attached) to an external USB hard disk.
The script currently copies everything in is residing directory (*.*) using XCopy to two locations (as you can see in the code). What I want to achieve is to log all the data it does actually copy to a separate logfile (DAY/MONTH/YEAR.log?) and then use my external SMTP server to email that file to a given address.
I don't know how to A: log the output and B: have it email the logfile (my SMTP email server also needs a username password to allow connections)
Any help appreciated,
Thanks.
Start Free Trial