PC Review


Reply
Thread Tools Rate Thread

command line for multiple attachments

 
 
=?Utf-8?B?VGVkIE9Eb25uZWxs?=
Guest
Posts: n/a
 
      2nd May 2007
Visual Basic Shell command works great for one attachment

"C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE /a
s:\test\test-coverletter.pdf"

but I am trying to send more than one attachment into shell

ex: s:\test\test-coverletter.pdf s:\test\test-sealed.pdf
s:\test\test-tpp.pdf are 3 files I have verified that exist on system and
user wants to send via e-mail from within VB program shelling to Outlook.

I have tried several variations on shell command line but cannot seem to
find the correct solution. Any Help would be appreciated.

Thanks Ted



 
Reply With Quote
 
 
 
 
Roady [MVP]
Guest
Posts: n/a
 
      2nd May 2007
Use the Outlook Object Model instead or compress the files first into a
single zip-file.

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003
http://www.howto-outlook.com/
Outlook FAQ, HowTo, Downloads, Add-Ins and more

-----
"Ted ODonnell" <(E-Mail Removed)> wrote in message
news:625D1957-42BE-46CA-A22D-(E-Mail Removed)...
> Visual Basic Shell command works great for one attachment
>
> "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE /a
> s:\test\test-coverletter.pdf"
>
> but I am trying to send more than one attachment into shell
>
> ex: s:\test\test-coverletter.pdf s:\test\test-sealed.pdf
> s:\test\test-tpp.pdf are 3 files I have verified that exist on system and
> user wants to send via e-mail from within VB program shelling to Outlook.
>
> I have tried several variations on shell command line but cannot seem to
> find the correct solution. Any Help would be appreciated.
>
> Thanks Ted
>
>
>


 
Reply With Quote
 
=?Utf-8?B?VGVkIE9Eb25uZWxs?=
Guest
Posts: n/a
 
      2nd May 2007
Great Idea. Thanks.

"Roady [MVP]" wrote:

> Use the Outlook Object Model instead or compress the files first into a
> single zip-file.
>
> --
> Robert Sparnaaij [MVP-Outlook]
> Coauthor, Configuring Microsoft Outlook 2003
> http://www.howto-outlook.com/
> Outlook FAQ, HowTo, Downloads, Add-Ins and more
>
> -----
> "Ted ODonnell" <(E-Mail Removed)> wrote in message
> news:625D1957-42BE-46CA-A22D-(E-Mail Removed)...
> > Visual Basic Shell command works great for one attachment
> >
> > "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE /a
> > s:\test\test-coverletter.pdf"
> >
> > but I am trying to send more than one attachment into shell
> >
> > ex: s:\test\test-coverletter.pdf s:\test\test-sealed.pdf
> > s:\test\test-tpp.pdf are 3 files I have verified that exist on system and
> > user wants to send via e-mail from within VB program shelling to Outlook.
> >
> > I have tried several variations on shell command line but cannot seem to
> > find the correct solution. Any Help would be appreciated.
> >
> > Thanks Ted
> >
> >
> >

>
>

 
Reply With Quote
 
Roady [MVP]
Guest
Posts: n/a
 
      2nd May 2007
You're welcome! :-)

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003
http://www.howto-outlook.com/
Outlook FAQ, HowTo, Downloads, Add-Ins and more

-----
"Ted ODonnell" <(E-Mail Removed)> wrote in message
news:3115E014-9292-4E5C-AFDD-(E-Mail Removed)...
> Great Idea. Thanks.
>
> "Roady [MVP]" wrote:
>
>> Use the Outlook Object Model instead or compress the files first into a
>> single zip-file.
>>
>> --
>> Robert Sparnaaij [MVP-Outlook]
>> Coauthor, Configuring Microsoft Outlook 2003
>> http://www.howto-outlook.com/
>> Outlook FAQ, HowTo, Downloads, Add-Ins and more
>>
>> -----
>> "Ted ODonnell" <(E-Mail Removed)> wrote in message
>> news:625D1957-42BE-46CA-A22D-(E-Mail Removed)...
>> > Visual Basic Shell command works great for one attachment
>> >
>> > "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE /a
>> > s:\test\test-coverletter.pdf"
>> >
>> > but I am trying to send more than one attachment into shell
>> >
>> > ex: s:\test\test-coverletter.pdf s:\test\test-sealed.pdf
>> > s:\test\test-tpp.pdf are 3 files I have verified that exist on system
>> > and
>> > user wants to send via e-mail from within VB program shelling to
>> > Outlook.
>> >
>> > I have tried several variations on shell command line but cannot seem
>> > to
>> > find the correct solution. Any Help would be appreciated.
>> >
>> > Thanks Ted
>> >
>> >
>> >

>>
>>


 
Reply With Quote
 
ekbustad@monmouth.com
Guest
Posts: n/a
 
      25th May 2007
Fine. But what it one wants to specify a recipient on the command
line also. It seems that the /a option for attachments and the /m
option for specifying a recipient email address are not allowed to be
used together. Any idea why?

= Eric Bustad


On May 2, 2:18 pm, "Roady [MVP]"
<newsgroups_DELETE_@_DELETE_sparnaaij_NO_._SPAM_net> wrote:
> You're welcome! :-)
>
> --
> Robert Sparnaaij [MVP-Outlook]
> Coauthor, Configuring Microsoft Outlook 2003http://www.howto-outlook.com/
> Outlook FAQ, HowTo, Downloads, Add-Ins and more
>
> -----"Ted ODonnell" <TedODonn...@discussions.microsoft.com> wrote in message
>
> news:3115E014-9292-4E5C-AFDD-(E-Mail Removed)...
>
> > Great Idea. Thanks.

>
> > "Roady [MVP]" wrote:

>
> >> Use the Outlook Object Model instead or compress the files first into a
> >> single zip-file.

>
> >> --
> >> Robert Sparnaaij [MVP-Outlook]
> >> Coauthor, Configuring Microsoft Outlook 2003
> >>http://www.howto-outlook.com/
> >> Outlook FAQ, HowTo, Downloads, Add-Ins and more

>
> >> -----
> >> "Ted ODonnell" <TedODonn...@discussions.microsoft.com> wrote in message
> >>news:625D1957-42BE-46CA-A22D-(E-Mail Removed)...
> >> > Visual Basic Shellcommandworks great for oneattachment

>
> >> > "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE /a
> >> > s:\test\test-coverletter.pdf"

>
> >> > but I am trying to send more than oneattachmentinto shell

>
> >> > ex: s:\test\test-coverletter.pdf s:\test\test-sealed.pdf
> >> > s:\test\test-tpp.pdf are 3 files I have verified that exist on system
> >> > and
> >> > user wants to send via e-mail from within VB program shelling to
> >> > Outlook.

>
> >> > I have tried several variations on shellcommandlinebut cannot seem
> >> > to
> >> > find the correct solution. Any Help would be appreciated.

>
> >> > Thanks Ted


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I launch outlook with multi-attachments using command line. =?Utf-8?B?a3Ru?= Microsoft Outlook VBA Programming 1 18th Jan 2006 04:19 PM
Command line to open new outlook message and attach to it multiple attachments daks Microsoft Outlook 0 7th Jun 2005 10:23 PM
Command line to create a new email with multiple attachments dvks Microsoft Outlook 0 1st Jun 2005 11:35 AM
Re: Command line program which will extract attachments from emails BEN.RITCHEY@family-news.org Freeware 0 23rd Jan 2005 04:48 AM
Multiple Attachments using command line swtches Dave Ringot Microsoft Outlook 1 14th Sep 2004 08:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:55 PM.