Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
Extract Files from MIMEExtract files from a MIME message.
Dim mime As New Chilkat.Mime() Dim success As Boolean success = mime.UnlockComponent("Anything for 30-day trial.") If (success = false) Then MsgBox("Failed to unlock component") Exit Sub End If ' Load a MIME document from a file: ' (.mht and .eml files contain MIME). success = mime.LoadMimeFile("mst.mht") If (success = false) Then MsgBox(mime.LastErrorText) Exit Sub End If Dim sa As Chilkat.StringArray sa = mime.ExtractPartsToFiles("c:/temp/mimeParts") If (sa Is Nothing ) Then TextBox1.Text = TextBox1.Text & mime.LastErrorText & vbCrLf Exit Sub End If Dim i As Long Dim n As Long n = sa.Count ' Display the filepaths of the files created: For i = 0 To n - 1 TextBox1.Text = TextBox1.Text & sa.GetString(i) & vbCrLf Next |
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.