Rob van der Woude's Scripting Pages

Help text for Rtf2Txt.cs

(view help text of Rtf2Txt.cs as plain text)

Rtf2Txt.exe,  Version 1.00
Return the plain text content of a Rich Text Format (.RTF) file

Usage:    Rtf2Txt.exe   rtffile  [ encoding ]

or:       Rtf2Txt.exe   /E

Where:    rtffile       is the path of the file to be read
                        (no wildcards, only .rtf extension allowed)
          encoding      is the output encoding, e.g. UTF-8 to preserve
                        Unicode characters, or IBM437 to convert Unicode
                        doublequotes to ASCII
          /E            list all available encodings

Notes:    If the specified encoding does not match any available encoding
          name, the program will try again, ignoring dashes; if that does
          not provide a match, the program will try matching the specified
          encoding with the available encodings' codepages.
          Return code ("errorlevel") 1 in case of errors, 0 on success.

Credits:  Use hidden RichTextBox to convert RTF to plain text by Wendy Zang


Written by Rob van der Woude

page last uploaded: 2022-10-05; loaded in 0.0187 seconds