| How to open an external file, in its associated application|
This script will open an external file in a related folder, in the "associated application". This is useful, if, for example a CD-ROM contains, or install program sets up, a directory structure containing files that should be linked from the e-book.
The "associated application" is defined as part of the user's Windows setup and can be changed by the user, or as a result of additional applications being installed on the user's system. By default, .BMP files are opened in Windows Paint, .WRI, .DOC and .RTF files are opened in WordPad, .TXT files opened in Notepad etc.
- If the file to be opened is located in the same folder as the e-book EXE, in one of your HTML files add the following code, replacing file.txt with the name of the file.
- If the file to be opened is located on the same drive letter but a different folder from the e-book, EXE, in one of your HTML files add the following code, replacing foldername with the name (or path to) the folder, and file.txt with the name of the file.
- This script has been tested with Activ E-Book Compiler versions 4.00, 4.01, 4.20, 4.21 and 4.22 (4.22 is the latest version at the time of writing). It is possible that changes might be required for e-books made with subsequent versions.