Google
 
Web ppczone.net

View Full Version : Hyperlink to exe file


EEjack
10-30-2006, 12:08 AM
I have created a "link" page for internet explorer on my pocket pc.
When i click the hyperlinks i created, it opens the url(also stored on the
pocket pc).

Here's my problem:
I also created some links on the page to files(wanting them to open when i
click the link, but they won't open this way.
Example:
I have a link to a pdf(adobe) file,(rules.pdf) but to click the link it
gives me an error.
when i use the same link on my home pc, it opens the file.
I've checked the links, and it is right. What i need is a way for the link
to not only open the pdf file, but also open adobe reader.

If I open adobe reader, before clicking the link(rules.pdf) then it opens.

Does anyone know how to make the reader and the file open?

I'm sure it's an html command, but i can't seem to get it.

thanx in advance.

EEjack

Beverly Howard [Ms-MVP/MobileDev]
10-30-2006, 01:56 PM
it would help if you posted some samples of the link contents... they
are simply text files, so, you can open the lnk file with a text editor
and paste them into a message here.

In general, two things keep links from working...

The first is the format of the command and how "quotes" are used such as
in cases where the location is on the "storage card" which contains a
<space> in the path

the second is broken "file associations" ...for example, if you locate
a pdf file using file explorer, tap it and it gives an error... these
can be reset with one of the "tweaks" programs or utilities such as
Resco file explorer.

some additional info at http://BevHoward.com/bhhpj.htm#ShortCuts

Beverly Howard [MS MVP-Mobile Devices]

David Hettel
10-30-2006, 03:35 PM
What happens if you navigate to where the file (pdf) is with file explorer
and tap on it? Will reader launch ok then and open it, or does nothing
happen?

--
David Hettel

Please post any reply as a follow-up message in the news group for everyone
to see. I'm sorry, but I don't answer questions addressed directly to me in
E-mail or news groups.

Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com

DISCLAIMER: This posting is provided "AS IS" with no warranty of any kind,
either expressed or implied, made in relation to the accuracy, reliability
or content of this post. The author shall not be liable for any direct,
indirect, incidental or consequential damages arising out of the use of, or
inability to use, information or opinions expressed in this post and confers
no rights.


"EEjack" <EEjack@discussions.microsoft.com> wrote in message
news:CA9E549D-3721-47EC-8887-00E4A724EF03@microsoft.com...
>I have created a "link" page for internet explorer on my pocket pc.
> When i click the hyperlinks i created, it opens the url(also stored on the
> pocket pc).
>
> Here's my problem:
> I also created some links on the page to files(wanting them to open when i
> click the link, but they won't open this way.
> Example:
> I have a link to a pdf(adobe) file,(rules.pdf) but to click the link it
> gives me an error.
> when i use the same link on my home pc, it opens the file.
> I've checked the links, and it is right. What i need is a way for the link
> to not only open the pdf file, but also open adobe reader.
>
> If I open adobe reader, before clicking the link(rules.pdf) then it opens.
>
> Does anyone know how to make the reader and the file open?
>
> I'm sure it's an html command, but i can't seem to get it.
>
> thanx in advance.
>
> EEjack

EEjack
10-30-2006, 06:15 PM
yes, when i click the file in file explorer, it opens

"David Hettel" wrote:

> What happens if you navigate to where the file (pdf) is with file explorer
> and tap on it? Will reader launch ok then and open it, or does nothing
> happen?
>
> --
> David Hettel
>
> Please post any reply as a follow-up message in the news group for everyone
> to see. I'm sorry, but I don't answer questions addressed directly to me in
> E-mail or news groups.
>
> Microsoft Most Valuable Professional Program
> http://mvp.support.microsoft.com
>
> DISCLAIMER: This posting is provided "AS IS" with no warranty of any kind,
> either expressed or implied, made in relation to the accuracy, reliability
> or content of this post. The author shall not be liable for any direct,
> indirect, incidental or consequential damages arising out of the use of, or
> inability to use, information or opinions expressed in this post and confers
> no rights.
>
>
> "EEjack" <EEjack@discussions.microsoft.com> wrote in message
> news:CA9E549D-3721-47EC-8887-00E4A724EF03@microsoft.com...
> >I have created a "link" page for internet explorer on my pocket pc.
> > When i click the hyperlinks i created, it opens the url(also stored on the
> > pocket pc).
> >
> > Here's my problem:
> > I also created some links on the page to files(wanting them to open when i
> > click the link, but they won't open this way.
> > Example:
> > I have a link to a pdf(adobe) file,(rules.pdf) but to click the link it
> > gives me an error.
> > when i use the same link on my home pc, it opens the file.
> > I've checked the links, and it is right. What i need is a way for the link
> > to not only open the pdf file, but also open adobe reader.
> >
> > If I open adobe reader, before clicking the link(rules.pdf) then it opens.
> >
> > Does anyone know how to make the reader and the file open?
> >
> > I'm sure it's an html command, but i can't seem to get it.
> >
> > thanx in advance.
> >
> > EEjack
>
>
>

Beverly Howard [Ms-MVP/MobileDev]
10-30-2006, 06:56 PM
>> yes, when i click... <<

no samples of what you are trying so we can see what's possibly happening?

Beverly Howard [MS MVP-Mobile Devices]

EEjack
11-02-2006, 11:30 AM
below is the entire code for the shortcut page.

all of the pdf files are located in the same folder as the enclosed page.

2 of the files are links to other html pages, and both links work.
just the links to the pdf files don't work

thnx
EEjack



<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
</head>

<body link="#000000" vlink="#000000" alink="#000000" bgcolor="#66FFCC">

<div align="center">
<table border="1" width="195" id="table1" cellspacing="1" cellpadding="0"
height="228" bordercolor="#000000">
<tr>
<td height="30" colspan="3" width="195" bgcolor="#FFCC66">
<p align="center"><b><font size="4">PDARULES</font></b></td>
</tr>
<tr>
<td height="58" align="center" width="65" bgcolor="#C0C0C0">
<p align="center"><font size="2"><b>
<a style="text-decoration: none" href="Air%20Brake%20Rules.pdf">Air
Brake<br>
Rules</a></b></font></td>
<td height="58" align="center" width="65" bgcolor="#FFFF99">
<font size="2"><b>
<a style="text-decoration: none" href="GCOR%20Rules.pdf">GCOR<br>
Rules</a></b></font></td>
<td height="58" align="center" width="65" bgcolor="#C0C0C0">
<font size="2"><b>
<a style="text-decoration: none" href="Hazmat.pdf">Hazmat<br>
Book</a></b></font></td>
</tr>
<tr>
<td height="58" align="center" width="65" bgcolor="#FFFF99">
<font size="2"><b>
<a style="text-decoration: none" href="Safety%20Rules.pdf">Safety<br>
Rules</a></b></font></td>
<td height="58" align="center" width="65" bgcolor="#C0C0C0">
<font size="2"><b>
<a style="text-decoration: none" href="Special%20Instructions.pdf">SSI<br>
Book</a></b></font></td>
<td height="58" align="center" bgcolor="#FFFF99"><font size="2"><b>
<a style="text-decoration: none" href="Safety%20Commitment.pdf">Safety<br>
commit-<br>
ment</a></b></font></td>
</tr>
<tr>
<td height="58" align="center" width="65" bgcolor="#C0C0C0">
<font size="2"><b>
<a style="text-decoration: none" href="GOs/Gen%20Orders.htm">General<br>
Orders</a></b></font></td>
<td height="58" align="center" width="65" bgcolor="#FFFF99">
<font size="2"><b>
<a style="text-decoration: none" href="NPSB/Supt%20Bulletins.htm">Supt<br>
Bulletins</a></b></font></td>
<td height="58" align="center" bgcolor="#C0C0C0"><font size="2"><b>
<a style="text-decoration: none" href="TimeTables.pdf">Time-<br>
table</a></b></font></td>
</tr>
<tr>
<td height="25" colspan="3" width="195" bgcolor="#FFCC66">
<p align="right">
<a href="PDARULES2.htm" style="text-decoration: none">
<font size="2">Page 2</font><font size="4"><b> ></b></font></a></td>
</tr>
</table>
</div>

</body>

</html>


"Beverly Howard [Ms-MVP/MobileDev]" wrote:

> >> yes, when i click... <<
>
> no samples of what you are trying so we can see what's possibly happening?
>
> Beverly Howard [MS MVP-Mobile Devices]
>
>
>

Beverly Howard [Ms-MVP/MobileDev]
11-02-2006, 02:13 PM
>> shortcut page <<

hmmmm... that really doesn't qualify as a "shortcut" but rather a "links
file" ;-)

As it is written there are a couple of possibilities... the first is
that the files are not located in the same directory as the html file...
if they are not, you will have to include the path to the location and
the syntax is inflexible... for example

file://\Storage%20Card\foldername\filename.ext

beyond that, the pie file extension associations (and possibly the
general file associations) for pdf files may not be set... gonna send
you to google for the pie ones and suggest tweaks programs to set the os
file associations.