Installation

phreplace is distributed as a compressed zip file, to install extract all files to your PSPad program folder (e.g. C:\Program Files\PSPad\) ensuring that the files are retained.

Install File Structure

The zip file should contain the following files:

  1. phreplace.dll
    This is the phreplace application, containing all the processing and user interface. As it is a dll (dynamic link library) this file needs to be registered so PSPad can use it. See note for Windows Vista users in Support and Development. This file should be saved to the PSPad root directory e.g. C:\Program Files\PSPad\phreplace.dll.
  2. phreplace.vbs
    This is the script file which PSPad calls to start phreplace, it trys to register the phreplace.dll file if it’s not already registered. This file should be saved under the PSPad VBScript directory e.g. C:\Program Files\PSPad\Scripts\VBScript\phreplace.vbs
  3. phreplace.chm
    This help file. Contains instructions to install and run phreplace as well as it’s version history. This file should be located in the same folder as the phreplace.dll file.
  4. phreplace.ini
    The settings file, if this doesn’t exist then phreplace will use the registry to save it’s settings, this can be changed in the settings menu if necessary.

Portability of phreplace

Phreplace stores settings in an ini file by default (this can be changed to use the registry, see the settings menu) therefore once it has been extracted the PSPad folder can be moved without having to reinstall phreplace. This means it can be used with a portable copy of PSPad e.g. a copy of PSPad on a portable media device. Please note that phreplace will need to register the phreplace.dll file on each computer in order to run, the startup script does this automatically.

Starting phreplace

To start phreplace, click on the Scripts menu in PSPad and select Multiline Search / Replace. A shortcut key can be assigned to phreplace, by default this is Ctrl-Alt-F. This can be changed in the phreplace startup script (phreplace.vbs).

See Also