need a script that copies files, then emails

ZippyDan

Platinum Member
Sep 28, 2001
2,141
1
81
i need to make a script that copies some files

like

copy c:\share\*.* d:
copy c:\share\*.* f:

and then sends an email saying it was completed. any easy way to do this?
 

Joemonkey

Diamond Member
Mar 3, 2001
8,859
2
0
hrm, i know there is a freeware program called monidir that you can set up to monitor a directory every X minutes and email you a predefined email when it happens. We use it to monitor when digital dictation is auto-downloaded and ready for transcription. If you want exact times this won't work.
 

QED

Diamond Member
Dec 16, 2005
3,428
3
0
The only difficult part of that is getting a command-line mailer.

I've used postie in the past with good success, and at the time it was free. I now see they charge $15 for it.
However, there's anohter command-line mailer called bmail which seems to work as well.

So you code would look something like this: