This topic is locked

Hyperlink to local executable

10/18/2006 10:58:42 AM
ASPRunnerPro General questions
B
Bryan author

Hi there,
Can anyone out there help with the following?
I have a list of documents that appear in a table for a user. The documents are imported from a database and an example is as follows:
Displayed:-----------------------------Field property:

Introuctory email to Client ----------/docs/1.msg

Initial document to Client------------/docs/2.doc

Update document to client-----------/docs/3.doc

Update email to 3rd party-----------/docs/4.msg
etc
The documents and emails could vary.
What I need is a hyperlink that links to an executable file followed by the relevant document so that nothing is downloaded to the user pc.
For example, for email 1.msg it would point to "/docs/emailview.exe 1.msg"
This is what i've tried:

  1. Setting the database field value to "emailview.exe 1.msg"

    Result - doesn't work. Crashed because of the space between the exe and 1
  2. Pointing to the exectuable

    Result: Launches the EXE but not the relevant msg
  3. Pointing to the MSG file

    Open the MSG on the local pc (with Outlook). Not ideal. The EMAILVIEW program just gives them a view of the email without importing it to outlook.
    Any ideas would be much appreciated.
    Bryan

Sergey Kornilov admin 10/18/2006

Bryan,
unfortunately things don't work the way you expect them to work.
When someone click on the link pointing to EXE file this file is downloaded to the temporary directory on visitor's local box and executed from there. This means 1.msg file should located in the same temporary directory where EXE file was downloaded which you cannot control.
The best workaround is to point link directly to 1.msg file which will be downloaded and open in default email client (Outlook, Eudora, TheBat etc). Btw, Outlook do not import this message it just shows it.
If you like to use EmailView for this purpose it needs to be installed on each client box as a default .MSg files viewer.

B
Bryan author 10/19/2006

Thanks for the reply Sergey.