Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to create a new email from command line and automatically add an attachment. The following is the closest I have gotten, it works apart from adding the attachment. I have also tried using &attach=... and &attachment=...

start mailto:emailadress?subject=My email&body=some text&attachments="c:/AUTOEXEC.BAT"

share|improve this question
up vote 2 down vote accepted

I figured it out. It works using the following commmand:

C:\Program Files\IBM\Lotus\Notes>notes\autoexec.bat

share|improve this answer

Thanks, just what i needed!

If you still want subject and body you'd have to escape the "&" (with ^). Else it is interpreted as a new command. e.g.:

C:\Program Files\IBM\Lotus\Notes>notes email^&body=some text^&attach=c:\autoexec.bat
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.