colkas2012
MIS
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
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