These utility programs written by Lexacorp may be used and distributed freely.

Note that none of these utilities has a "Setup" or "Uninstall" procedure. They do not write to the Registry and do not put DLLs etc in other directories. To remove any of these utilities from your system just delete them.

The programs are broken into three groups, click on a group name to jump to that group.
misc_utils.gif - 5246 Bytes email_rel.gif - 5755 Bytes make_pdf.gif - 5475 Bytes


Loan Calculator

Use this calculator to work out what the monthly, fortnightly or weekly repayments would be on a loan such as a mortgage, car loan etc
The calculator is currently "branded" for one of our clients and includes a link to their website (developed by us).

Contact us if you would like to have it rebranded for your own Company.

Click here to download LOANCALC

Official PNG Income Tax Calculator

Developed by us for the PNG Internal Revenue Commission. The zip file also includes the Tax Guide in Windows Help (.hlp) format and a second file PNGTaxGrossUp.exe which calculates the Gross amount needed to earn a specified "after tax" amount.

Click here to download PNGTax


I've tried various contact managers/address books/schedulers over the years but generally they are resource hogs and are overkill if you just want to look up phone numbers and record phone calls. Here's a very small and easy to use Phone book and Call Log which uses your modem to dial the number for you, either a number in the book or you can enter a number to dial directly. You can log the number dialled and the duration of the call. It also lets you record the duration of incoming calls. Minimises to the Tasktray.

Click here to download PHONEBOOK


FTPSend will upload a specified file to a web site based on parameters passed to it on the command line or in an encrypted parameter file. By putting it in a batch file or calling it from a macro/procedure in another application, you can automate updating of files on your site.

Click here to download FTPSEND


A utility to strip or modify lines from a text document (or text copied to the clipboard) if the lines contain a certain string ( or alternatively, if they don't contain the string) You can replace various parts of a matching line or remove it completely. Handy for extracting just the info you need from modem log files etc, stripping comments out of source code, changing multiple occurrences of a string throughout a file or stripping leading ">"s from an email. Also lets you easily view the original and stripped files so that you can change your stripping options.
Click here to download LINESTRP

ASCII Character Stripper

A variation on LineStrip, this utility lets you remove or replace characters in any file, not just line delimited files. It can globally replace any byte values. You could for instance use it to replace every CR in a UNix text file and replace them with CR/LF pairs for use in DOS/WIndows. Also lets you easily view the original and stripped files, (text files only - view binary files at your own risk!)

Click here to download CharRepl


A utility that displays the IP (Internet Protocol) address of the user's computer. It is often not easy to discover the IP address of a computer because these are generally allocated by the host every time a user logs on and can vary from session to session. IPAddr displays a small window with the current primary IP address. This window can be "always on top" . If run with a -E command line switch it will set the Envionment variable IP in the Master Environment to the IP Address

Click here to download ipaddr.exe


A utility to write information to a log file when a user logs in. Include this command in a login script and you can write any of the following data to a log file: Windows Username, Computername, IP Address, Date, Time and any environment variables which have already been set.
If run without the /f filename parameter, output will be send to Stdout (the Console window)

Run the program with a /? or /H switch for a simple help screen

Click here to download LOG

Merge Directories

A utility to combine two directories into one. All files in the Origin directory will be moved to the Destination directory. If a file with the same name, date/time and size exists in the destination directory, the file being moved will be renamed with a numeric suffix. A text file can also be created in the destination directory detailing exactly what files were moved/renamed

Click here to download MergeDir

If you want to start a program such as Pegasus Mail and pass it the Windows Username as a parameter, you can use PASSUSER. For example, using Pegasus Mail: Place PassUser in your PMail directory. Instead of running WINPM-32.EXE and having to enter an identity, you can set up a shortcut or batch file with a commandline such as:
PASSUSER WINPM-32 -I #Username
don't forget the space after the -I)

Click here to download PASSUSER

When Is Easter

A very small utility for the triviots and those who plan well ahead. When you run this little program, a small box pops up: type in any four digit year and it will display what day Easter Sunday falls in that year (Note it is only accurate for years after the introduction of the Gregorian Calendar in your country -anywhere from 1582 to early 1900's! It will obviously only work until the year 9999 - you can blame that on the Y10K bug if you want!)

Click here to download Easter


Mailbox Size Warning

Mail Administrators:
If your mail system uses a directory system for mailboxes, has restrictions on mailbox sizes and you want to warn Windows users when these boxes are getting full, include MAILWARN.EXE in their login script
It will tell them their limit and how big their mail directory is when it reaches defineable "trigger size". Available in Spanish (translation by Freddy Kugelmass) and German (translation by Stephan Reichenbach)

Click here to download MailWarn English Version
Click here to download MailWarn Spanish Version
Click here to download MailWarn German Version

Mail Box Analyser
- Message Counter
Quick analysis of a Pegasus Mail mailbox. Reports the number of Folders and Inward and Outward messages in the mailbox and shows total size of all messages and total size of the mailbox directory. Just drop it into a mail directory and run it (Note: It only reports on the directory it is run from)

Click here to download MsgCount

Mailing List Expander Pegasus Mail Mailing Lists can contain a mixture of email addresses and Address Book names. The names are resolved at the time send a message using the list.
This utility will provide a plain text list of the entries in a mailing list with the corresponding addresses from the address books.
Has an option to strip names from lists which contain names as well as addresses and can also sort the list.

Click here to download LstExpnd

Email Attachment Warning

Pegasus Mail Administrators:
If you want to prevent users from viewing/executing vbs,exe etc files, use Attchwrn. Set the executable as the default for dangerous filetypes in Viewer.PM.
When they select "View" on an attachment, they will just receive your message telling them that they can't and advising what to do with the attachment.

Click here to download AttchWrn

Pegasus Mail Message Save File Cleaner A utility to clean up the text file created when saving multiple messages to disk with Pegasus Mail.

MailStrip allows you to strip headers ( or only retain certain selected headers) from all messages. Where there is a standard footer in messages with a unique id

Click here to download Mailstrp

Pegasus Mail Daily Outward Mail Scheduler
DaymoveX and DaymoveS - Two utilities to send Pegasus Mail "pending" outward mail files on a daily basis (used in combination with a task scheduling program such as the MS Task Scheduler)
The programs searches all .PMX and .PMW files in the current directory for a line indicating that they should be send based on the current date.

DaymoveS (S for Subject) looks for a "Subject:" line which ends with a string matching the current date in the form [yymmdd].
DaymoveX (X for X-Header) looks for a custom header line in the form X-Send-Date:yymmdd

If the program finds a match it moves the file up one directory level. (ie By placing them in a 'Pending' directory below the normal outward mail directory, they will be placed back in the send queue.)

Also included in the zip file is AddrMod - a utility to add/remove addresses from .PMX files (use to update pending pmx files when people subscribe/unsubscribe to a list for which you have already created pending messages)

Click here to download Daymove (containing DaymoveS, DaymoveX amd AddrMod)p

Pegasus Mail Address Book/Distribution List entry locator If you use multiple address books or distribution lists in Pegasus Mail, it can be tricky to find out which book is being used to autocomplete an address or which lists contain a particular address. With AddrFind,you can locate every address book or distribution list that contains a articular name (or any other string).

Click here to download AddrFind

Pegasus Mail Address Folder name resolver PegFolders lists all the Pegasus Mail folders in the current directory, showing the operating system filename, the internal Identifier string, the user friendly "Folder Name" and the file size.

Click here to download PegFolders

LISTSERV Log splitter A specialised utility. A DOS application which takes a LISTSERV log file (monthly or whatever) and splits it on message boudaries into a series of files called LOG00001.CNM etc. You can then put them into a Pegasus Mail "New Mail Folder" and manipulate the messages individually.

Click here to download LogSplit

MAPISend MAPISend is a simple Command Line utility to send messages (and attachments) via any MAPI compliant email system (such as Pegasus Mail). You can use it in batch files or macros/modules in other programs to automate emailing documents.
If you run MAPISend without any parameters, it will display a simple help screen.

One use for MAPISend is to email MS Word documents easily (which you normally can't do unless you use MS Outlook.)
To do this, just put put this Macro in your template file and create a menu item or toolbar button to invoke the macro:

Public Sub send_document()
Dim lngResult As Long
If Documents.Count >= 1 Then
  If ActiveDocument.Saved = False Then
  End If
  lngResult = Shell("Mapisend /E /F " & ActiveDocument.Name)
  MsgBox "No documents are open"
End If

End Sub

Click here to download MAPISend

Pegasus Mail Add Addresses from Outgoing messages to Content Control Whitelist
To use with Pegasus Mail v4.x:

Create a new Copy to Self Filter rule set to Always Trigger' with an action of 'Run a Program'.
Set the rule parameters to the program followed by the path to your mail directory.
If you username is Admin,it would be something like: 'C:\Pmail\AddToWhite.exe C:\Pmail\Mail\Admin'

When you send a message, the program will check all To:,Cc: and Bcc: addresses in the message against the current WHITE.PML. If they are not already there, they will be added.

Addresses are reduced to the actual name@domain part and converted to all lower case for the Whitelist to reduce the number of duplicate entries (same address, but different Display Name details)
If an addressee is a Pegasus Mail AddressBook alias, not an actual email address, it is ignored, and the alias will not be added to the list. It is up to the user to make sure that address book recipients are whitelisted.

Click here to download AddToWhite

Pegasus Mail Display an alert when a message is received
To use with Pegasus Mail v4.x:

Create a New Mail Filter rule set to identify messages you wish to be notified of with an action of 'Run a Program'.
Set the rule parameters to the program path and name.

When a matching message is received, the program will display a standard Windows dialog box showing the From: and Subject: headers of the message

Click here to download MsgAlert

Pegasus Mail Restore Archived Mail Folders
Pegasus Mail cannot display two mail folders with the same internal ID even if they are in separate mailboxes. Mail folders also have to be Read-Write.

This causes problems when trying to view mail folders which have been archived by copying them to backup media.

This utility:
1. Copies all .PMM and .PMI files in the source directory to the destination directory and renames them as BAKxxxxx.PMM and BAKxxxx.PMI.
2. Ensures that the resulting file is Read/Write.
3. Creates a different internal unique ID for the file.

Once you have run this program to restore archived folders to a directory you can attach that directory using the Pegasus Mail 'Add mailbox to list' option and access the archived folders in this new mailbox

Now available in French - translation by Philippe Chartier

Click here to download PMRestArch
Click here to download PMRestArch French Version


Do you send emails with attached Word or Excel files which:
  1. can carry viruses,
  2. may not display the same on someone elses computer (if they can open the file at all!),
  3. can be modified by the recipient without your knowledge,
  4. are much larger than needed just to get your message through?
You should be using Portable Document Files (PDF) which can be read on an platform with any one of a large number of free PDF Readers. One way to create PDFs is to configure a Windows Postscript printer driver to create a Postscript file, you can print anything to the file and then use AFPL Ghostscript to convert the Postscript file to PDF. The only problem with this is that is Ghostscript uses a command line interface and lots of complicated parameters so it is not at all easy to use.
So I created a simple but powerful Front End

Screen Shot


You can use MakePDF in a number of ways:
  1. Put a shortcut to MakePDF in "C:\WINDOWS\SENDTO" and then right click on a postscript file and use the Send To Menu.
  2. Place a shortcut to MakePDF on the desktop and drag and drop files onto it.
  3. Specify MakePDF as the default "Open" program for a particular file extension, name your postscript files appropriately and then double click on any postscript file.
  4. Call MakePDF from the commandline or from a batch file with switches to select various options.
  5. Call MakePDF from a macro or procedure in another application to create a PDF and send it to a MAPI complaint email program with one click
There are a number of options which can be selected when you run MakePDF either by selecting them on the screen or by using command line switches when starting makePDF.
  1. Specify the Version of PDF file to create (If you specifying this on the commandline together with the input filename, and optionally the output filename, MakePDF will create the PDF file and then close with no user interaction - useful for batch files and calling from other applications)
  2. View the PDF file in Acrobat once it is created
  3. Delete the intermediate Postscript file or leave it in place
  4. Display or ignore error messages
  5. Perform "batch" conversions of multiple postscript files using wildcards
  6. Send the resulting PDF file to your MAPI compliant email program
You can further automate your PDF handling by using one of MakePDF's two companion programs MailPDF or FTP-PDF
. With MailPDF, you can create and send PDF files through your MAPI complaint email program with no user intervention.
MailPDF lets you specify addresses, subject heading, body text and the file to convert and attach to the message from the command line.
With FTP-PDF you can specify details of your website or other FTP location and your PDF will be created and uploaded in one step.

Another usesful addition to MakePDF is SearchPDF which lets you find PDFs which contain certain text (see below for details).

Setting Up MakePDF

  1. Download the Ghostscript application (see below for link) and install it. li>Set up a new printer in Windows using any available Postscript printer driver (preferably a colour printer - I used the HP Paintjet XL300 Postscript and renamed it "PostscriptFile") and set the port to either "FILE:" or to a specific file name (I use C:\Windows\Desktop so that I can easily double click it when I want to). You should also set the "Spool Settings" to "Print Direct To Printer".
  2. Place MailPDF.EXE (and MailPDF.Exeas well if required) in any convenient directory (Note: MailPDF must be in the same directory as MakePDF if you use it).
  3. Open MakePDF and point it to your Ghostscript executable file when prompted.
  4. If desired, specify MakePDF as the default "Open" program for a particular file extension (in Windows Explorer: go to View - Options - File Types - New Type) and include any desired switches in the command line ( I use "C:\Program Files\MakePDF\MakePDF.EXE" %1 /S /X /L /Q /D)

Creating PDF documents:


  1. Create your document in the application of your choice (MS Word, Excel or whatever)
  2. Print the document to the PostscriptFile printer.
  3. Locate the resulting Postscript file and double click, right click and select MakePDF or drag onto the PDF icon. Or open MakePDF and use the "Browse" button to locate your Postscript file.
  4. A dialog box appears, set any switches required and click on a button to create the appropriate version of PDF file.

From a Command Line or Batch File

You can also invoke MakePDF from the commandline or a batch file. If you include a /V1.2 ,/V1.3 or /V1.4 after the filename, MakePDF will automatically create the appropriate PDF file and then terminate without any dialog boxes or user interaction.

Directly from another application

I use MakePDF to automate the creation and distribution of of MS Word and Excel documents. I use MakePDF's companion program MailPDF to allow me to automatically create and email reports in MS Access. You can use similar approaches to do this from any program which supports macros or procedures which can invoke another application. The following are examples of using MakePDF/MailPDF with Microsoft applications.

MS Word/Excel and MakePDF

For MS Word, you can place the following macro in your Normal.DOT template and place a button pointing to it on a suitable toolbar. Then you can print the current document as a PDF and open a new mail message with it already attached - all with a single mouse click.

Sub SendPDF()
   Dim strShellstr As String
   Dim strQ As String
   'set strQ as a Quote character to delimit long file names containing spaces
   strQ = Chr$(34)

  'Print to Postscriptfile
  'set the appropriate printer
   ActivePrinter = "Postscriptfile on C:\WINDOWS\TEMP" 
   ActiveDocument.PrintOut (False) 
  'False switch forces macro to wait until file is printed

  'Create PDF using MakePDF
  'passes the documents "Title" property as the SUbject of the email
  'and the document's Name (with  a .PDF extension instead of the .DOC extension)
  'as the filename
   strShellstr = strQ & "C:\Program Files\makepdf\makepdf.exe" & strQ & _
     ActiveDocument.BuiltInDocumentProperties(wdPropertyTitle) & " /Q /O " & _
     strQ & "C:\windows\desktop\" & _
     Left$(ActiveDocument.Name, Len(ActiveDocument.Name) - 4) & ".PDF" & strQ
  Shell strShellstr
End Sub

MS Access and MailPDF

1. Design a report ("MyReport") and configure it to "print to a specific printer" - specifically, the printer set up for MakePDF to print to a specific file.

Create a Form with a text field to enter the email address (txtAddress) and a command button (cmdSend) and place the following code in the on_click event:

	DIM strShellstring as string
	DoCmd.OpenReport "MyReport"
	strShellstring = Chr$(34) & "C:\Program Files\Makepdf\Mailpdf.exe" & _
	    Chr$(34) & " /N " & _
	    txtAddress & " /I C:\Windows\Desktop\Pscript.psf" & Chr$(34) & _
	    " /O C:\MyReport /S Attached Report /B Here is the report you wanted"
	Shell (strShellstring)
End Sub

Clicking the button will print the report, convert it to PDF and send it to the specified address. Note: Because of the spaces in the path, it is necessary to surround the MailPDF.exe path in the string with quotes (Chr$(34)'s)


SearchPDF will scan a selected directory branch for PDF files and search each PDF for a given text string. it display all matching and non matching PDF files found in two list boxes. You can then open any selected matching PDF file from within the program. Like MakePDF, it uses AFPL Ghostscript to do all the hard work. In order to use the program, you must have Ghostscript installed. This program also uses the PSTOTXT package, written by Paul McJones and Andrew Birrell of Digital Equipment Corporation's Systems Research Center (see the file pstotext.txt which is included in the downlaod zip file for licencing details). DOWNLOADS Note: You need to download and instal Ghostscript as well.

Click here to download MakePDF
Click here to download MailPDF (requires MakePDF as well)
Click here to download FTP-PDF (requires MakePDF as well)
Click here to download SearchPDF

Download Ghostscript from here
You can get Adobe Acrobat Reader here