OutlookAttachView - View / Extract / Save Outlook Attachment from command-line or GUI

(追記) (追記ここまで)
Main Page
Blog
Search
FAQ
TOP 10
Pad Files
Contact
About...
Donate
All Utilities
Password Tools
System Tools
Browser Tools
Programmer Tools
Network Tools
Outlook/Office
64-bit Download
Panel
Forensics
Pre-Release Tools
Articles

(追記) (追記ここまで)
OutlookAttachView v3.53 - View / Extract / Save Outlook Attachments from command-line or GUI
Copyright (c) 2009 - 2024 Nir Sofer

See Also

Description

OutlookAttachView scans all messages stored in your Outlook, and displays the list of all attached files that it finds. You can easily select one or more attachments and save all of them into the desired folder, as well as you can delete unwanted large attachments that take too much disk space in your mailbox. You can also save the list of attachments into xml/html/text/csv file.

System Requirements

Download links are on the bottom of this page

Outlook Attachments Viewer

Versions History

Using OutlookAttachView

OutlookAttachView doesn't require any installation process or additional dll files. In order to start using it, simply run the executable file - OutlookAttachView.exe
If you have only one profile in your Outlook, and this profile doesn't require any password, you can run OutlookAttachView even without starting Outlook, and it'll automatically scan the mailbox of your current Outlook profile. Otherwise, it's recommended to open Outlook in the right profile before starting OutlookAttachView.
After running OutlookAttachView, the 'MailBox Scan Options' window will be displayed. This window allows to choose to scan your mailbox only in specific dates range. After choosing 'Ok' in the options window, OutlookAttachView starts to scan your Outlook messages and display the found attachments in the main window of OutlookAttachView. If you want to stop the scan process, simply choose the 'Stop' menu.
After the scanning process is finished, you can select one or more of your attached files, and copy them into the desired folder, by using the 'Copy Selected Files To' option. If have large attachments that you want to delete, you can use the 'Delete Selected Attachments' option. Be aware that when you use the delete option, only the attachment file is deleted. The message itself remains on your mailbox.
You can also use the 'Clean Selected Attachments' option to clean most of the attachment content, but without removing the attachment entry. If you use this option, you'll still see the attachment listed in your email message with small file size, but saving this attachment to a file will create a corrupted file.

Inline Attachments

Attachments embedded as a part of the message body are detected as 'Inline Attachments'. By default, OutlookAttachView doesn't displays these inline attachments.
If you can't find the attachments you're looking for, you should try to turn on the 'Show Inline Attachments' option, located under the Options menu.

Control The Filename Format of Extracted Attachment

When you extract one or more attachments from your Outlook mailbox, you can control the way that the attach filename is generated. By default, OutlookAttachView use the following format: %attach_name%.%extension%, which means that the generated filename will only contain the original attachment name and the file extension. However, you can also use the following special variables to format the filename according to your needs:

For example: If you want to generate the attachment filename with the subject, folder name, and attach name:
%folder_name%_%subject%_%attach_name%.%extension%

If you want to generate the attachment filename with the subject and attach name and put the attachment in the same folder structure of Outlook (You have to turn on the 'Create subfolders automatically' option):
%folder_full_path%\%subject%_%attach_name%.%extension%

Be aware that some of the values are automatically truncated after 64 characters, in order to avoid from over-sized filenames.

Scanning Outlook Attachments of External PST Files

If you want to search an attachment in one or more PST files that are not loaded in your Outlook profile, you can use the following trick:
  1. Go to Control Panel -> Mail and choose 'Show Profiles'
  2. Click 'Add' to create a new profile.
  3. Fill the email account information with faked details (You can delete it afterwards)
  4. After the profile is created, double click on the profile, and in the profile properties, click 'Data Files' and add the desired PST files that you wish to scan.
  5. Also, you can click the 'E-mail Accounts' button, and remove the faked account that you previously created.
  6. In the Mailbox Scan Options of OutlookAttachView, choose 'Allow me to choose the profile' in the Outlook Profile option.
  7. When you are asked to choose the profile, you should choose the profile that you created, and OutlookAttachView will scan the PST files that you added into it.

Command-Line Options

/stext <Filename> Save the list of all Outlook attachments into a regular text file. /stab <Filename> Save the list of all Outlook attachments into a tab-delimited text file. /scomma <Filename> Save the list of all Outlook attachments into a comma-delimited text file. /stabular <Filename> Save the list of all Outlook attachments into a tabular text file. /shtml <Filename> Save the list of all Outlook attachments into HTML file (Horizontal). /sverhtml <Filename> Save the list of all Outlook attachments into HTML file (Vertical). /sxml <Filename> Save the list of all Outlook attachments to XML file. /Columns <Comma Delimited Columns List> Allows you to set the columns to display or the columns to export from command-line. You have to specify the column names, delimited by comma, for example:
OutlookAttachView.exe /scomma c:\temp\outlook-attachments.csv /Columns "Filename,From,To,Subject,Folder Name,Attachment ID"

You can also specify the column names without space characters, for example:
OutlookAttachView.exe /Columns "Filename,From,To,Subject,FolderName,AttachmentID" /SaveDirect Save the Outlook attachments in SaveDirect mode. For using with the other save command-line options ( /scomma, /stab, /sxml, and so on...)
When you use the SaveDirect mode, the attachments list is saved directly to the disk, without loading them into the memory first. This means that you can save a list with large amount of attachment lines into your disk without any memory problem, as long as you have enough disk space to store the saved file. The drawback of this mode: You cannot sort the attachments according to the column you choose with /sort command-line option. /sort <column> This command-line option can be used with other save options for sorting by the desired column. If you don't specify this option, the list is sorted according to the last sort that you made from the user interface. The <column> parameter can specify the column index (0 for the first column, 1 for the second column, and so on) or the name of the column, like "Filename" and "Subject". You can specify the '~' prefix character (e.g: "~Subject") if you want to sort in descending order. You can put multiple /sort in the command-line if you want to sort by multiple columns.

Examples:
OutlookAttachView.exe /shtml "f:\temp\attach.html" /sort 2 /sort ~1
OutlookAttachView.exe /shtml "f:\temp\attach.html" /sort "From" /sort "To" /sort "Subject" /nosort When you specify this command-line option, the list will be saved without any sorting. /cfg <filename> Starts OutlookAttachView with the specified configuration file instead of the default OutlookAttachView.cfg /start Starts the mailbox scan immediately with the loaded configuraion, without displaying the Scan Options dialog-box. /extractall Extracts all Outlook attachments from command-line, according to your last settings saved in the default .cfg file, or according to other configuration file that you load with /cfg command-line option. /extractallsetreadflag Extracts all Outlook attachments from command-line like /extractall command and also set the read flag. You can use it with the 'Scan only unread messages' option to extract message attachments only once. /extractdeleteall Extracts all Outlook attachments from command-line like /extractall command and also deletes all extracted attachments from Outlook. Be careful when using this command, OutlookAttachView cannot restore the attachments in Outlook after deleting them. /LogFile <filename> Generates a log file while extracting attachments, for example:
OutlookAttachView.exe /extractall /LogFile "c:\temp\log1.txt" /LogFileAppend <filename> Generates a log file while extracting attachments, for example:
OutlookAttachView.exe /extractall /LogFileAppend "c:\temp\log1.txt"

If the file already exists, the new log lines are added to the existing file.

You can also use the following command-line options to change any configuarion value you wish:


/CopyFilesFolder <Folder Path String>
/NewNameIfExist <0 | 1>
/UpdateModifiedTimeMessage <0 | 1>
/FilenameFormat <Filename Format String>
/ScanOptions.TimeZone <1 | 2>
/ScanOptions.OutlookProfile <1 | 2 | 3>
/ScanOptions.UseExtensionsList <0 | 1>
/ScanOptions.ExtensionsList <Extensions To Include>
/ScanOptions.UseExcludeExtensionsList <0 | 1>
/ScanOptions.ExcludeExtensionsList <Extensions To Exclude>
/ScanOptions.UseSubjectContains <0 | 1>
/ScanOptions.SubjectContains <Subject String>
/ScanOptions.ScanOnlyFolders <0 | 1>
/ScanOptions.ScanFoldersList <Folders To Scan>
/ScanOptions.SkipFolders <0 | 1>
/ScanOptions.SkipFoldersList <Folders To Skip>
/ScanOptions.DateFrom <From Date>
/ScanOptions.DateTo <To Date>
/ScanOptions.UseDateRange <0 | 1>
/ScanOptions.OutlookProfileString <Profile Name>
/ScanOptions.UseFromList <0 | 1>
/ScanOptions.FromList <From Emails List>
/ScanOptions.UseToList <0 | 1>
/ScanOptions.ToList <To Emails List>
/ScanOptions.UseOnlyLastDays <0 | 1>
/ScanOptions.OnlyLastDays <Last num of days to scan>

For example, if you want to extract all attachments into c:\myattach instead of using the folder specified in the config file:
OutlookAttachView.exe /CopyFilesFolder "c:\myattach" /extractall

Translating OutlookAttachView to other languages

In order to translate OutlookAttachView to other language, follow the instructions below:
  1. Run OutlookAttachView with /savelangfile parameter:
    OutlookAttachView.exe /savelangfile
    A file named OutlookAttachView_lng.ini will be created in the folder of OutlookAttachView utility.
  2. Open the created language file in Notepad or in any other text editor.
  3. Translate all string entries to the desired language. Optionally, you can also add your name and/or a link to your Web site. (TranslatorName and TranslatorURL values) If you add this information, it'll be used in the 'About' window.
  4. After you finish the translation, Run OutlookAttachView, and all translated strings will be loaded from the language file.
    If you want to run OutlookAttachView without the translation, simply rename the language file, or move it to another folder.

License

This utility is released as freeware. You are allowed to freely distribute this utility via floppy disk, CD-ROM, Internet, or in any other way, as long as you don't charge anything for this. If you distribute this utility, you must include all files in the distribution package, without any modification !

Disclaimer

The software is provided "AS IS" without any warranty, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The author will not be liable for any special, incidental, consequential or indirect damages due to loss of data or any other reason.

Feedback

If you have any problem, suggestion, comment, or you found a bug in my utility, you can send a message to nirsofer@yahoo.com Download OutlookAttachView Download OutlookAttachView 64-bit - Only for using with Outlook 64-bit Check Download MD5/SHA1/SHA256 Hashes

OutlookAttachView is also available in other languages. In order to change the language of OutlookAttachView, download the appropriate language zip file, extract the 'outlookattachview_lng.ini', and put it in the same folder that you Installed OutlookAttachView utility.

LanguageTranslated ByDateVersion
Brazilian Portuguese Jaff (Oprea Nicolae) 10/03/20142.65
Czech Vladimír Trenčan01/03/2013 2.31
Dutch Jan Verheijen13/06/20243.53
French Largo15/03/20243.52
German «Latino»21/04/20253.53
Greek geogeo.gr 31/03/20162.90
Hebrew peterg 15/11/20111.95
Hungarian Timinoun03/08/20243.51
Italian Michele Locati e bovirus14/06/20243.53
Japanese coolvitto 21/06/20243.53
Persian ZendegiyeSabz 25/06/20243.53
Polish Pawik7406/06/20122.31
Romanian Jaff (Oprea Nicolae) 21/01/20162.87
Russian Dmitry Yerokhin15/03/20243.52
Simplified Chinese Peter Lee文良 15/06/20152.78
Simplified Chinese qzwqzw21/04/20122.25
Simplified Chinese DickMoore 02/02/20243.51
Slovak František Fico16/06/20243.53
Spanish arquer.net 20/05/20091.05
Swedish SuperDOS30/06/20091.05
Traditional Chinese Danfong Hsieh 15/03/20243.52
Traditional Chinese teb.hk 22/08/20152.81x64
Turkish HARUN ARI 10/06/20243.53
Valencian vjatv 17/03/20091.05

AltStyle によって変換されたページ (->オリジナル) /