"the command line argument is not valid"

G

Guest

I have a batch file containing the following:

"C:\Program Files\Microsoft Office\Office11\OUTLOOK.EXE" /c ipm.note.SIMS /m
(e-mail address removed) /a "u:\passwords.doc"

This works perfectly in Ouutlook 2000. However when I run it with
Outlook2002 or Outlook2003 I I get the following error:

"The command line argument is not valid. Verify the switch you are using".

It will work with just the /c and /m switches or with just the /c and /a
switches but not with all three.
 
S

Sue Mosher [MVP-Outlook]

I think that's just the way it works: You can't use all those switches together in OL2002 or 2003.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

I had a horrible suspicion taht that would be the case. Is there any other
way to do what I want, which is to have a batch file that will send of a
whole set of e-mails to different users, each e-mail having the same subject
and message but each one having a different attachment. This would be run on
a periodic basis when the files to be attched had been updated.
 
S

Sue Mosher [MVP-Outlook]

Since you're using a custom form, you don't have much choice other than to use Outlook objects for this. If you're using Outlook 2003, you can write a VBA macro. (Outlook 2002 will trigger security prompts unless you use a third-party library or other solution.)

There are also mass mail tools that may be able to help, but I don't know if they can handle the OUtlook form. See http://www.slipstick.com/addins/mail.htm#massmail
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top