This script allows for the easy creation of an EPUB ebook from plain text. 
There are four ways to run the script to feed it the plain text it wants:

1 - Drop a text file on the script. The EPUB will be created in the same 
    folder as the text file and with the same base name.

2 - Right-click a plain-text TXT file (with a ".txt" file extension) and 
    select "Create EPUB from plain text". This will create an EPUB file 
    in the same folder -- and with the same base name -- as the source
    TXT file. NOTE: In order to enable the right-click option, you must 
    first run the script with no arguments as an administrator. From XP, 
    just double-click the script. From Windows 7, open an Administative 
    command prompt and enter the full path to the script.

3 - Copy some text, then drop a destination folder on the script. The EPUB 
    will be created in the specified folder with a name based on the book 
    title (which you'll be asked to provide).

4 - Copy some text, then right-click the desired destination folder and 
    select "Create EPUB from Clipboard". NOTE: In order to enable the 
    right-click option, you must first run the script with no arguments 
    as an administrator. From XP, just double-click the script. From 
    Windows 7, open an Administative command prompt and enter the full 
    path to the script.

-----------------------------------------------------------------------------

If you want to use "cover art" so your ebooks have a picture for the first 
page, you have three ways to do it:

1 - Drop a "JPG" picture on the script before you create your ebook. The 
    script will remember your picture (for up to five minutes) and will 
    use it (only once) in the next ebook you create.

2 - Right-click a "JPG" picture and select "Use JPG as next EPUB cover".
    This operates exactly the same as dropping a picture on the script.
    NOTE: In order to enable the right-click option, you must first run 
    the script with no arguments as an administrator. From XP, just 
    double-click the script. From Windows 7, open an Administative 
    command prompt and enter the full path to the script.

3 - Place any "JPG" picture in the directory where you intend to create 
    your ebook. The most recent JPG picture in the directory will be used
    as cover art for all subsequent EPUBS created in that folder.

In case of a conflict (if you dropped a picture on the script, but you 
also have a picture in the destination folder), the more recent of the 
dropped or right-clicked file will be used as the cover art.

-----------------------------------------------------------------------------


If you want to use the advanced features, you have two ways to do it.

1 - Edit the "Const" values in the beginning of the script. Just 
    right-click the script and select "Edit". Make the desired changes and 
    save the file. Here's an edited (shortened) list of the constants you 
    can modify:

    Const PROMPT_TITLE = True
    Const PROMPT_AUTHOR = True
    Const DEF_AUTHOR = "Unknown"
    Const DEF_UNWRAP = True
    Const DEF_UNHYPHEN = True
    Const DEF_INDENT = 4
    Const DEF_OVERWRITE = True

    Depending on where you get the text for your ebooks, you may need to 
    change the DEF_UNWRAP from True to False (or vice-versa) to get the lines 
    and paragraphs to format correctly.

2 - Run the script from the command line using the following options:

  /file:"C:\path\file.txt" (location of plain text)
  /title:"Book Title"      (title of book)
  /author:"Author Name"    (book author)
  /id:ID                   (isbn or other unique id)
  /unwrap:True|False       (replace single newline with space)
  /unhyphen:True|False     (remove hyphen-newline)
  /indent:0-9              (number of spaces to indent paragraphs)
  /overwrite:True|False    (overwrite existing epub without asking)

  An example command line might be:
  txt2epub.vbs /file:"C:\book.txt" /author:"Eric Phelps" /overwrite:true