eBook authors eBook Software - create and publish your own ebooks
Create your own eBooks
 
   
EBookApprentice.com
Learn How To Create, Publish & Market E-Books
 
   
EBookCompiler.com
E-Book Creation Software
 
   
EBookPower.com
Add sophisticated multimedia to your E-Books
 
   
CoverFactory.com
Create E-Book covers in minutes
 
 
  EBookSubmit.com
E-Book Marketing & Promotion made easy
 
  EBookJungle.com
Search engine for E-Books
 
  EBookInterviews.com
Interviews with eBook authors
 
  EBookEnhance.com
Tools for building better eBooks
 
 
 
Archived Message:

Question about ##OPEN statement


 
editor I have a shortcut in my computer's program menu that looks something like this:

"C:\Program Files\Archive\MyProgram.exe" "MyFile.nnn"

The command line is required because the ".nnn" extension is not associated with MyProgram.exe. This shortcut opens both the program AND the desired file within it.

I'm wondering if it's possible to incorporate a similar command line into a function like the following so that it, too, will open a non-associated file. If so, how?

onclick="##OPEN('{app}\subfolder\MyProgram.exe')"

Thanks.

(Edited by editor at 1:59 pm on Feb. 9, 2007)

(Edited by editor at 2:00 pm on Feb. 9, 2007)


Posted on: 5:31 am on February 9, 2007
EBookCompiler ##OPEN does the Windows Shell Open function

This is really intended to be the equivalent of double clicking on a file in Explorer (so it works on non-executable files too, e.g.  ##OPEN() on a .TXT will open it in Notepad).

I don't think it will work with parameters, etc. but you can try it.  You can also try ##RUN() which is WinExec/CreateProcess which does allow command line parameters but (AFAIK) must contain path to an EXE program


Posted on: 4:40 pm on February 14, 2007
editor Thanks for the advice, Sunil. I was indeed able to incorporate command line parameters with ##RUN. This configuration worked:

<a href="##RUN('{app}\subfolder\MyProgram.exe {app}\subfolder\MyFile.nnn')">Open File</a>

I needed to include the path to both the EXE program AND the file to open. The above with ##OPEN did not work, as you suspected.

Thanks again for your help!


Posted on: 6:32 am on February 16, 2007

Go to Active Discussion Thread

Participate in Current/New Discussions

List All Archived Forums



Copyright © 2000-2015, Answers 2000 Limited.

With any business, it is up to the individual owner of said business to ensure the success of the business. You may make more or less than any sample figures or results that might be quoted on our web sites or other publications. All business involves risk, and many businesses do not succeed. Further, Answers 2000 Limited does NOT represent that any particular individual or business is typical, or that any results or experiences achieved by any particular individual/business is necessarily typical.

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

Our sites use cookies, some of which may already be set on your computer. Use of our site constitutes consent for this. For details, please see Privacy.

Contact Us    About and Terms Of Use    Privacy    Advertising/Endorsements Disclosures