PhiLhoSoft Freeware Page

You should find here some freewares I have made.

ProgLauncher icon ProgLauncher

What it is?

Basically, it is a program I have made to redirect calls to Window's Notepad (mainly by Internet Explorer when I ask to View source of a Web page) to a program of my choice.

In other words, this is a replacement for notepad.exe or other programs that are inconditionaly launched by another application.

Why do I need it?

You may need it if you are tired to view the source of Web pages in IE using Notepad.
ProgLauncher allows you to use the text editor of your choice, be it a lightweight Notepad alternative (like Metapad or The Gun) or a lightweight syntax highlighting editor (like SciTE) or even a big HTML editor which can't be moved from its installation directory.

You can also use it to redirect calls to any program made by any application which doesn't let its users to choose which program to use.
These programs can be text editors, of course, but also image viewers, diff utilities, etc.

Other advantage: you may be updating often your editor, and have several locations of Notepad.
For example, I help improving SciTE so I always have a fresh copy in the development directory, a copy in Program Files, and I had to do a copy in the Win98 directory, and another for WinNT, which have two copies of Notepad. That's 4 copies to update.
I had a batch file to update all these copies, but it was quite a hassle. Now, I just have to update the main copy of my editor, and I no longer touch the files in my system directories.

How do I get it?

Here: ProgLauncher 1.0 (less than 25KB).
The source code is distributed with it, but your really need only ProgLauncher.exe and NotePad.cfg (to rename and/or edit, as explained below).

How do I use it?

It's aim is to replace the binary of the program that is ran. To this end, rename the old program, say <ProgramName>.exe becoming <ProgramName>_old.exe, or move it to another directory. I recommand to keep a copy in case you change your mind or if you need someday to launch the standard version.
Then rename ProgLauncher.exe to <ProgramName>.exe (eg. rename it NotePad.exe) and move it to the directory where the old program was.
When your application will try and run the old program, it will launch instead the disguised ProgLauncher which in turn will run the program of the user's choice.
This choice is defined in the <ProgramName>.cfg file (eg. NotePad.cfg), found in the same directory as the .exe file.

This file have three lines (the following ones are ignored and can contain comments):

Note 1: in old Win95 versions, system is making track of the rename of notepad.exe, and still call the old exe. In this case, you have to make a copy for backup, instead of renaming it, and overwrite the old file.

Note 2: in new Windows versions (namely Windows 2000 and newer), system is auto-repairing, ie. if it notices you have changed a system file (and Notepad is one of them), it will restore the original file.

Workaround found in Lockergnome:

Those who pay attention to the GnomeREPORT know that I've replaced Notepad with Metapad as my default text editor (which came from welcome.to/metapad). In Windows 98, I simply renamed the binary and threw it into my Windows folder. When I tried to do the same in Windows 2000, the operating system wouldn't let me. Within seconds, it would reverse my replacement. What!? That's a nice safeguard, but I really wanted to use the Metapad binary. In a matter of minutes, I discovered that files in the "WINNT \ system32 \ dllcache" folder were my problem. Upon replacing its copy of Notepad with the Metapad binary, I was saved. Of course, not before being warned about the issues which may have come up (which haven't yet). Now, if you care to stop this auto-recovery from ever happening again, you'll need to launch your registry editor. Navigate to "HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ Winlogon" and look for the "SFCDisable" DWORD value. Set it to "1" and you'll be good to go.

Note 3: in Windows NT 4, Notepad can be found in two locations: C:\WinNT\ and C:\WinNT\System32 (if it is installed in the default directory; Replace C:\WinNT by whatever is in your system).
You have to replace both copies, as either one can be called.

MPCalc icon MPCalc

What it is?

A command line calculator.
It is based on the excellent MathParser library, written by Kirill Zaborski.

Why do I need it?

You don't :-)
Well, if you love typing in a Dos/Cmd box, you may find it useful...
Otherwise, it can be used in a batch file to do computations, or in a script written in a language not supporting complex math operations.
For example, AutoIt.
Actually, I made it specifically for AutoIt, since I support most of the input modes AutoIt support: plain file (via redirection of standard output), .ini file and clipboard.

How do I get it?

Here: MPCalc 1.1.1 (less than 10KB).

How do I use it?

See the test.aut file in the Zip file. It shows common uses of this program.
Also read the MathParser.rtf file for further information.
If you run MPCalc without command line parameters, you get the following information:

MPCalc 1.1 by Philippe Lhoste, based on Kirill Zaborski's MathParser
(http://kirya.narod.ru/mathparser.html).
MPCalc evaluates the mathematical expression you give on the command line.
Usage: MPCalc [@inifilename'section'key | '[clipboard]] math expression
If the @ command is present (first one, excludes the ' command), MPCalc will
write the result in the inifilename.ini file (in the current directory),
under the given section and key (no spaces).
If the ' command is present (first one, excludes the @ command), the result
is put in the Windows clipboard.
Otherwise, the result goes to stdout.

StartScript

What it is?

A shbang utility for Windows.

Why do I need it?

You don't :-)

How do I get it?

Here: StartScript 1.0 (less than 18KB).

How do I use it?

See the Zip file. More informations to come here.

Go to main page. Contact me, comment this

Created: 2002?
Updated: ? (Minor update (links): 2004/05/09)