Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...The enviroment is simple, natural and efficient. The members are competent, educated and professionals..."

Geography

Where in the world do Tek-Tips members come from?
colkas2012 (MIS)
2 Aug 12 10:47
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
colkas2012 (MIS)
2 Aug 12 11:30
Hi

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

Hope someone can help, thanks
guitarzan (Programmer)
2 Aug 12 12:16
I don't see an /smtp switch in the robocopy documentation
colkas2012 (MIS)
3 Aug 12 11:12
Hi

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

Thanks

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close