Michael,
Sounds good to me then. The snippet of code I snagged for vb looks like:

Dim strm As ADODB.Stream
Dim myMail As New CDO.Message
strm = myMail.GetStream()
strm.Type = ADODB.StreamTypeEnum.adTypeText
strm.LoadFromFile("c:\file.eml")
strm.Flush()
Dim attach As IBodyPart
For Each attach In myMail.Attachments
MsgBox(attach.FileName)
Next

In trying to find something equivalent in ps, I am out of luck. As the io 
notify code is ps, I'd hate to start over, any pointers here for ps equivalents?
Thanks!
jlc

From: Michael B. Smith [mailto:[email protected]]
Sent: Tuesday, January 25, 2011 11:07 AM
To: NT System Admin Issues
Subject: RE: Processing eml files

If I were doing it in PowerShell, I'd probably still use CDO.

That should work fine.

Regards,

Michael B. Smith
Consultant and Exchange MVP
http://TheEssentialExchange.com

From: Joseph L. Casale [mailto:[email protected]]
Sent: Tuesday, January 25, 2011 12:44 PM
To: NT System Admin Issues
Subject: Processing eml files

I need to load an eml file programmatically and strip the attachments, I was 
hoping to use PowerShell, but vb could work as well.
It will run on a 2008r2 server, the simplest example I could find was vb only 
and used CDO. If no one knows of a PowerShell way to do this, does anyone see 
anything wrong with installing CDO on a 2008r2 server and leveraging it to 
accomplish this?

Thanks!
jlc

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
[email protected]<mailto:[email protected]>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
[email protected]<mailto:[email protected]>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

Reply via email to