eBook Scripts
how to open an external file, in its associated application

 
Home Design Tips Scripts Templates/Translations


How to open an external file, in its associated application

Overview

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.


Requirements
Instructions
  1. 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.

  2. 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.


Notes
  1. 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.






 

Home: eBook Code



Other Sites about eBooks

EBookApprentice.com
Learn about eBook publishing

EBookCompiler.com
Software to create your own eBooks

CoverFactory.com
Create eBook Covers with ease

EBookPower.com
Add multimedia to your eBooks

EBookFriends.com
Discuss eBooks

EBookInterviews.com
Read about other eBook authors' experiences

EBookSubmit.com
Learn about eBook marketing

EBookJungle.com
Searchable directory of eBooks



Related Links

Internet Marketing
 Learn Marketing
 Marketing Tactics

Promotion Links
 Email Marketing
 Increase Traffic
 Press Releases
 Search Engines
 SEO Downloads

Web Site Building
 Accept Credit Cards
 Affiliate Programs
 Domain Names
 Setup Internet Store
 Web Design Software
 Web Design Tutorial
 Web Hosting
 Webmaster Tools

 

 
Disclosure: Advertising Link(s): Our company may receive a payment if you purchase a product/service after following this link.

Disclosure: Our company's websites' content (including this website's content) includes advertisements for our own company's websites, products, and services, and for other organization's websites, products, and services. In the case of links to other organization's websites, our company may receive a payment, (1) if you purchase products or services, or (2) if you sign-up for third party offers, after following links from this website. Unless specifically otherwise stated, information about other organization's products and services, is based on information provided by that organization, the product/service vendor, and/or publicly available information - and should not be taken to mean that we have used the product/service in question. Additionally, our company's websites contain some adverts which we are paid to display, but whose content is not selected by us, such as Google AdSense ads. For more detailed information, please see Advertising/Endorsements Disclosures

About/Terms Of Use     Privacy     Site Map     Advertising/Endorsements Disclosures

Copyright © 2002-2009, Answers 2000 Limited