Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Robocopy and emailing

Status
Not open for further replies.
Feb 29, 2012
26
GB
Hi

I want to email the result or log file from robocopy

I ahve a script working that does the copy but now I want it to email me the log file.

I ahve added the syntax I have found on line but cannot get it working

robocopy "C:\Users\colin.preston\Desktop\colin" "C:\Users\colin.preston\Desktop\Colin1" /e /copyall /r:1 /w:5 /np /log:"C:\Users\colin.preston\Desktop\log\cp.log"

(this bit works alone but when I add the below I get the log with an error message which I cannot work out

/smtp:XXXX01 /from:dave.dave@sky.co.uk /to:dave.dave@sky.co.uk /attachlog

The log says

RROR : Invalid Parameter #9 : "/smtp:CWVM01"

Any ideas please anyone
 
Hi

The error says ERROR : Invalid Parameter #9 : "/smtp:XXXX01" and not as above.

Hope someone can help, thanks
 
I don't see an /smtp switch in the robocopy documentation
 
Hi

No does not look like there is. I found robocopyplus which works but costs. Presently looking at BLAT.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top