A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Command-line switch to attach MULTIPLE files



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 10th 09, 04:30 PM posted to microsoft.public.outlook
Jack B. Pollack
external usenet poster
 
Posts: 44
Default Command-line switch to attach MULTIPLE files

I'm using this command-line switch to attach a file to an email:
"C:\Program Files\Microsoft Office\Office11\OUTLOOK.EXE" /c ipm.note /a

It works perfectly if I specify just one file. Can it be modified to attach
multiple files to a new message?

Thanks


Ads
  #2  
Old June 10th 09, 04:46 PM posted to microsoft.public.outlook
Roady [MVP]
external usenet poster
 
Posts: 2,620
Default Command-line switch to attach MULTIPLE files

No, but you can compress the multiple items first to a single zip-file and
attach that instead.
Depending on what you are trying to achieve, you can use the Outlook Object
Model to attach multiple files as well.

An example of using the OOM to include multiple attachments can be found
here;
http://www.howto-outlook.com/howto/mailpdfplus.htm

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

http://www.msoutlook.info/
Real World Questions, Real World Answers

-----

"Jack B. Pollack" wrote in message
...
I'm using this command-line switch to attach a file to an email:
"C:\Program Files\Microsoft Office\Office11\OUTLOOK.EXE" /c ipm.note /a

It works perfectly if I specify just one file. Can it be modified to
attach multiple files to a new message?

Thanks

  #3  
Old June 10th 09, 05:45 PM posted to microsoft.public.outlook
Jack B. Pollack
external usenet poster
 
Posts: 44
Default Command-line switch to attach MULTIPLE files

Thanks for your post.

I actually replaced the "send to" item with this command string to get rid
of the extraneous text etc. that the default one includes. The problem is
that I cant highlight multiple items and attach them.

I am interested in looking at the OOM sample but my AV software is flagging
that page as infected with VBS:SelfMailer-gen2 [Wrm].

Can anyone confirm that the page is safe to view.

"Roady [MVP]" t wrote in
message ...
No, but you can compress the multiple items first to a single zip-file and
attach that instead.
Depending on what you are trying to achieve, you can use the Outlook
Object Model to attach multiple files as well.

An example of using the OOM to include multiple attachments can be found
here;
http://www.howto-outlook.com/howto/mailpdfplus.htm

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

http://www.msoutlook.info/
Real World Questions, Real World Answers

-----

"Jack B. Pollack" wrote in message
...
I'm using this command-line switch to attach a file to an email:
"C:\Program Files\Microsoft Office\Office11\OUTLOOK.EXE" /c ipm.note /a

It works perfectly if I specify just one file. Can it be modified to
attach multiple files to a new message?

Thanks



  #4  
Old June 10th 09, 08:01 PM posted to microsoft.public.outlook
Diane Poremsky [MVP]
external usenet poster
 
Posts: 12,991
Default Command-line switch to attach MULTIPLE files

That switch is limited to 1 attachment.


--
Diane Poremsky [MVP - Outlook]
Need Help with Common Tasks? http://www.outlook-tips.net/beginner/
Outlook 2007: http://www.slipstick.com/outlook/ol2007/

Outlook Tips by email:


Exchange Messaging Outlook newsletter:


Outlook Tips:
http://www.outlook-tips.net/
Outlook & Exchange Solutions Center: http://www.slipstick.com

You can access this newsgroup by visiting
http://www.microsoft.com/office/comm...s/default.mspx or point your
newsreader to msnews.microsoft.com.


"Jack B. Pollack" wrote in message
...
I'm using this command-line switch to attach a file to an email:
"C:\Program Files\Microsoft Office\Office11\OUTLOOK.EXE" /c ipm.note /a

It works perfectly if I specify just one file. Can it be modified to
attach multiple files to a new message?

Thanks

  #5  
Old June 10th 09, 10:26 PM posted to microsoft.public.outlook
Roady [MVP]
external usenet poster
 
Posts: 2,620
Default Command-line switch to attach MULTIPLE files

I can assure you that the page is safe to view.
What is reporting it as infected?
Are you using Avast?

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

http://www.msoutlook.info/
Real World Questions, Real World Answers

-----

"Jack B. Pollack" wrote in message
...
Thanks for your post.

I actually replaced the "send to" item with this command string to get rid
of the extraneous text etc. that the default one includes. The problem is
that I cant highlight multiple items and attach them.

I am interested in looking at the OOM sample but my AV software is
flagging that page as infected with VBS:SelfMailer-gen2 [Wrm].

Can anyone confirm that the page is safe to view.

"Roady [MVP]" t wrote
in message ...
No, but you can compress the multiple items first to a single zip-file
and attach that instead.
Depending on what you are trying to achieve, you can use the Outlook
Object Model to attach multiple files as well.

An example of using the OOM to include multiple attachments can be found
here;
http://www.howto-outlook.com/howto/mailpdfplus.htm

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

http://www.msoutlook.info/
Real World Questions, Real World Answers

-----

"Jack B. Pollack" wrote in message
...
I'm using this command-line switch to attach a file to an email:
"C:\Program Files\Microsoft Office\Office11\OUTLOOK.EXE" /c ipm.note /a

It works perfectly if I specify just one file. Can it be modified to
attach multiple files to a new message?

Thanks



  #6  
Old June 10th 09, 10:52 PM posted to microsoft.public.outlook
Jack B. Pollack
external usenet poster
 
Posts: 44
Default Command-line switch to attach MULTIPLE files

yep, Avast

"Roady [MVP]" t wrote in
message ...
I can assure you that the page is safe to view.
What is reporting it as infected?
Are you using Avast?

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

http://www.msoutlook.info/
Real World Questions, Real World Answers

-----

"Jack B. Pollack" wrote in message
...
Thanks for your post.

I actually replaced the "send to" item with this command string to get
rid of the extraneous text etc. that the default one includes. The
problem is that I cant highlight multiple items and attach them.

I am interested in looking at the OOM sample but my AV software is
flagging that page as infected with VBS:SelfMailer-gen2 [Wrm].

Can anyone confirm that the page is safe to view.

"Roady [MVP]" t wrote
in message ...
No, but you can compress the multiple items first to a single zip-file
and attach that instead.
Depending on what you are trying to achieve, you can use the Outlook
Object Model to attach multiple files as well.

An example of using the OOM to include multiple attachments can be found
here;
http://www.howto-outlook.com/howto/mailpdfplus.htm

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

http://www.msoutlook.info/
Real World Questions, Real World Answers

-----

"Jack B. Pollack" wrote in message
...
I'm using this command-line switch to attach a file to an email:
"C:\Program Files\Microsoft Office\Office11\OUTLOOK.EXE" /c ipm.note /a

It works perfectly if I specify just one file. Can it be modified to
attach multiple files to a new message?

Thanks





  #7  
Old June 10th 09, 11:25 PM posted to microsoft.public.outlook
Jack B. Pollack
external usenet poster
 
Posts: 44
Default Command-line switch to attach MULTIPLE files

This looks like it might work. Does anyone have a pre-written VBS or WSH
script to take a string and create a blank message with the passed
attachments (ie "send to" vbs script would create a blank message with the
specified attachments).



"Roady [MVP]" t wrote in
message ...
No, but you can compress the multiple items first to a single zip-file and
attach that instead.
Depending on what you are trying to achieve, you can use the Outlook
Object Model to attach multiple files as well.

An example of using the OOM to include multiple attachments can be found
here;
http://www.howto-outlook.com/howto/mailpdfplus.htm

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

http://www.msoutlook.info/
Real World Questions, Real World Answers

-----

"Jack B. Pollack" wrote in message
...
I'm using this command-line switch to attach a file to an email:
"C:\Program Files\Microsoft Office\Office11\OUTLOOK.EXE" /c ipm.note /a

It works perfectly if I specify just one file. Can it be modified to
attach multiple files to a new message?

Thanks



  #8  
Old June 12th 09, 11:38 AM posted to microsoft.public.outlook
Jack B. Pollack
external usenet poster
 
Posts: 44
Default Command-line switch to attach MULTIPLE files

If anyone is interested I wrote this VB script to replace the built in "Send
To Mail Recipient" item. It doesn't insert all the BS text the default one
does.

Save the script as "Mail Recipient.vbs" in you MS office folder.
Delete the "Mail recipient" item in your "%homepath%/sendto" folder
Create a shortcut to the new Mail Recipient script in the sendto folder
Change the icon to the new shortcut to "%SystemRoot%\system32\sendmail.dll"


On Error Resume Next
Set App = GetObject(, "Outlook.Application")
If Err 0 Then Set App = CreateObject("Outlook.Application")
Set AppItem = App.CreateItem(0)


If WScript.Arguments.Count 0 then

For FileName = 0 to (WScript.Arguments.Count - 1)
AppItem.Attachments.Add WScript.Arguments(FileName)
Next


AppItem.Display

End If


Set App = Nothing
Set AppItem = Nothing






Hope this helps someone


"Jack B. Pollack" wrote in message
...
I'm using this command-line switch to attach a file to an email:
"C:\Program Files\Microsoft Office\Office11\OUTLOOK.EXE" /c ipm.note /a

It works perfectly if I specify just one file. Can it be modified to
attach multiple files to a new message?

Thanks



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2003 Command line switch carina Outlook - Installation 4 July 3rd 08 06:57 PM
command line switch /f CLPO Outlook - Using Forms 0 May 13th 08 11:49 AM
outlook switch to attach multiple items devi[_2_] Outlook - Using Forms 0 October 11th 07 09:55 PM
Outlook 2007 command line switch [email protected] Outlook - General Queries 2 March 7th 07 09:57 PM
attach many files outlook command Patrick Outlook and VBA 0 May 17th 06 11:35 PM


All times are GMT +1. The time now is 03:39 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.