Convert PST Files Via Command Line With Total Outlook Converter
Usage: OutlookConverter.exe <source> <destination> <options>
If you have a path with spaces use quotation marks.
Options:
- -log - Don`t show errors. Write them to the log file
- -verbosity - Log file verbosity
- error - Write to log file only errors (default)
- detail - Write detailed log file
- -logmode - Log file mode
- overwrite - Overwrite (default)
- append - Append
- -list - File with files mask to convert. Simple text file, each file on new line
- -Recurse:off - Include subfolders
- -do - Delete originals
- -kfs - Keep folder structure
- -fo - Force overwrite existed files
- -combine:off - Combine all files into one document (pdf, tiff)
- -sort - Sort source file list
- unsorted - Unsorted, natural order (default)
- name - Sort by file name
- date - Sort by file modification date
- numbers - Sort by numbers in file name
- -ext - Use custom extension for output files
- -c - Convert to
- DOC - convert to DOC
- PDF - convert to PDF
- HTML - convert to HTML
- XHTML - convert to XHTML
- TXT - convert to TEXT
- TIFF - convert to TIFF
- JPEG - convert to JPEG
- EML - convert to EML
- -pst - Outlook data file to convert
- -sub:off - Convert messages in subfolders
- -template - Destination file name template
- [name] - source file name
- [subject] - mail subject
- [sender] - mail sender
- [recipient] - first of mail recipients
- [date:format] - mail date
- -atemplate - Attach file name template
- [mail] - email file name
- [mail_index] - email number
- [attach] - attach original file name
- [attach_index] - attach index
- -sender:off - Export "sender" field
- -rcpt:off - Export "recipient" field
- -cc:off - Export "cc" field
- -bcc:off - Export "bcc" field
- -date:off - Export "date" field
- -subject:off - Export "subject" field
- -attach:off - Save attachments
- -iattach:off - Export attachment information
- -uattach:off - Unpack zipped attachments
- -images:off - Include attached images into document
- -msg:off - Convert attached email messages
- -smsg:off - Put attached e-mail messages into separate document
- -docs:off - Convert attached documents (only PRO version)
By default, Mail Converter exports all fields, save attachments in the document folder and converts attached emails. If you want to change default behaviour, you should set all needed keys
- -sdocs:off - Put converted documents into separate files (only PRO version)
- -rfcheaders:off - Export RFC-822 (transport) headers
- -css - External CSS file
- -dinet:off - Disable access to Internet (do not load images from Internet)
- -dpi - DPI specifies the resolution (dots per inch) of the acquired image
- -pc - PDF file compression
- Fastest - Fastest compression
- Normal - Normal compression
- Maximum - Maximum compression
- -mp - PDF master (owner) password
- -up - PDF user password
- -perm - PDF user permissions
- Copy - Copy
- Modify - Modify
- Annotation - Annotation
- FormFill - FormFill
- Accessibility - Accessibility
- DocAssembly - DocAssembly
- HighResPrint - HighResPrint
- -PFXFile - PFX File for sign document
- -PFXPass - The password to open the PFX file
- -SignLoc - The location that the signing was done
- -SignCon - The contact information of the signer
- -SignRes - The reason for signing document
- -PDFAuthor - PDF document author
- -PDFSubject - PDF document subject
- -PDFTitle - PDF document title
- -pdfa:off - PDF/A compatibility mode
- -TM - Top Margin (inches)
- -LM - Left Margin (inches)
- -BM - Bottom Margin (inches)
- -RM - Right Margin (inches)
- -po - Paper Orientation
- Portrait - Portrait
- Landscape - Landscape
- -ps - Paper size
- Letter - Letter
- LetterSmall - LetterSmall
- Tabloid - Tabloid
- Ledger - Ledger
- Legal - Legal
- Statement - Statement
- Executive - Executive
- Folio - Folio
- A0 - A0
- A1 - A1
- A2 - A2
- A3 - A3
- A4 - A4
- A4Small - A4Small
- A5 - A5
- B4 - B4
- B5 - B5
- Quarto - Quarto
- EnvC5 - Envelope C5
- EnvC3 - Envelope C3
- EnvC4 - Envelope C4
- EnvC6 - Envelope C6
- EnvB4 - Envelope B4
- EnvB5 - Envelope B5
- EnvB6 - Envelope B6
- EnvMonarch - Envelope Monarch
- Custom - Custom, you need to set paper dimensions
- -pd - Custom paper size dimensions in mm <width>x<height>
- -fit:off - Fit content to page
- -tc - TIFF Image Compression
- Uncompressed - uncompressed TIFF
- LZW - LZW compression
- RLE - RLE compression (packbits)
- JPEG - JPEG compression
- CCITT1D - Bilevel Huffman compression (CCITT1D)
- G3FAX1D - Bilevel Group 3 CCITT compression, monodimensional (G3FAX1D)
- G3FAX2D - Bilevel Group 3 CCITT compression, bidimensional (G3FAX2D)
- G4FAX - Bilevel Group 4 CCITT compression, bidimensional (G4FAX)
- -tiffpi - TIFF Photometric interpretation
- wz - White is zero
- bz - Black is zero
- rgb - RGB
- pal - RGB Palette
- mask - Transparent mask
- cmyk - CMYK
- ycbcr - YCBCR
- cielab - CIELAB
- -Head:off - Turn off header text
- -HeadText - Header text. Where [page] - Page Number and [date] - current date
- -HeadAlign - Header align
- left - align left
- right - align right
- center - align center
- -HeadFont - Header font name
- -HeadSize - Header font size
- -Foot:off - Turn off footer text
- -FootText - Footer text. Where [page] - Page Number and [date] - current date
- -FootAlign - Footer align
- left - align left
- right - align right
- center - align center
- -FootFont - Footer font name
- -FootSize - Footer font size
Examples:
- OutlookConverter.exe C:\Mail\*.pst C:\Dest\-c html -sender -subject -attach
Convert all PST files from C:\Mail to html format, include sender and subject and extract all attachments
- OutlookConverter.exe "Inbox" C:\Dest\ -pst C:\Source\Archive.pst -c pdf
Convert folder Inbox from pst file Archive.pst
to folder C:\Dest in the PDF format
- OutlookConverter.exe -pst C:\Source\Archive.pst
Open file Archive.pst