Unable to link to local file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am unable to create a working link from an html page to a file on my desktop

In Word, I created a document on my c: drive called "text.doc"

In FP 2002, I created a text.htm file. I created a link which the Edit Hyperlink dialog box shows the "Text to Display" as "text.doc" and the "Address" as "C:\text.doc". In FP, when I cursor over the link, it shows up at the bottom of the page as "file:///C:/test.doc". When I use "Crtl + Click" to follow the link the test.doc opens properly in Word

I uploaded the text.htm file to our web server. When I access the page, the link appears active and when I cursor over it, the link shows at the bottom of IE6 as "file:///C:/test.doc". Unfortunately, when I click on the link nothing happens - the document won't open

Am I doing something wrong or is this a setting problem with my browser? Thank you
 
Apparently, your web server is not your local machine. If the file is on
your local machine, "C:\test.doc" refers to it. On the web server,
"C:\test.doc" refers to the C drive on the server.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

Walter said:
I am unable to create a working link from an html page to a file on my desktop.

In Word, I created a document on my c: drive called "text.doc".

In FP 2002, I created a text.htm file. I created a link which the Edit
Hyperlink dialog box shows the "Text to Display" as "text.doc" and the
"Address" as "C:\text.doc". In FP, when I cursor over the link, it shows up
at the bottom of the page as "file:///C:/test.doc". When I use "Crtl +
Click" to follow the link the test.doc opens properly in Word.
I uploaded the text.htm file to our web server. When I access the page,
the link appears active and when I cursor over it, the link shows at the
bottom of IE6 as "file:///C:/test.doc". Unfortunately, when I click on the
link nothing happens - the document won't open.
 
So how would I specify a link from a web page on the internet to a file "test.doc" on my desktop? Thx.
 
You can't unless you're running a server on your
machine, that contains a web, and you have a static IP address,
like 123.456.789.123 which is your internet connection IP
and then point the link to
http://123.456.789.123/test.doc

Otherwise, test.doc needs to be in your web and published.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer

Walter said:
So how would I specify a link from a web page on the internet to a file
"test.doc" on my desktop? Thx.
 
To clarify: By "server" Steve means a web server. You don't need a server
operating system or machine. Windows XP Pro, for example, comes with a web
server.

The issue here is how to identify your machine uniquely among the millions
that are connected to the Internet. This is done via IP addresses. Every
computer connected to the Internet has a unique IP address, which is
composed of 4 "octets" - each octet is a number between 0 and 255, and they
are separated by periods. A domain name is a mapping of a unique string of
text to a static (fixed) IP address. Your typical home user doesn't have a
static IP address. IP addresses from most ISPs are assigned from a pool, and
change periodically.

In fact, you ought to reconsider granting the Internet access to your home
computer. It opens up a world of possibilities for hackers, which Network
Administrators are paid good money to prevent.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Thanks for the response. I was able to do this before and it worked. Seemed before, it would show my link as file://c:\test.doc but now frontpage puts in the 3 forwardslashes. We are using this for clients within an intranet who access our site. From a secure page on our webserver that they can access, they can show links to files within their intranet that they can then access (hopefully). Could this be a frontpage issue?
 
Walter,
Open your web in FP.
Click on the folder you want to place the file in. If you want it in the root folder, click on the web name at the top of the folder list.
Then do a file>import and browse to the file. Import it.
Publish your web and FP should change the link to test.doc or images/test.doc

You can link a file on your desktop to a web page, but you will be the only one who can see it.

Any page or document has to be contained inside your web to work, and you don't need the http:// and or www in the link.

Any HYPERLINK to an external document has to be on a server. In FP you have to have the http:// so that FP knows it on another server.


--
John
johnf 202 at hotmail dot com


| I am unable to create a working link from an html page to a file on my desktop.
|
| In Word, I created a document on my c: drive called "text.doc".
|
| In FP 2002, I created a text.htm file. I created a link which the Edit Hyperlink dialog box shows the "Text to Display" as "text.doc" and the "Address" as "C:\text.doc". In FP, when I cursor over the link, it shows up at the bottom of the page as "file:///C:/test.doc". When I use "Crtl + Click" to follow the link the test.doc opens properly in Word.
|
| I uploaded the text.htm file to our web server. When I access the page, the link appears active and when I cursor over it, the link shows at the bottom of IE6 as "file:///C:/test.doc". Unfortunately, when I click on the link nothing happens - the document won't open.
|
| Am I doing something wrong or is this a setting problem with my browser? Thank you.
|
|
 
No, it's not a FrontPage issue. I did explain the issue.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

Walter said:
Thanks for the response. I was able to do this before and it worked.
Seemed before, it would show my link as file://c:\test.doc but now frontpage
puts in the 3 forwardslashes. We are using this for clients within an
intranet who access our site. From a secure page on our webserver that they
can access, they can show links to files within their intranet that they can
then access (hopefully). Could this be a frontpage issue?
 
I certainly don't want to invite folks to hack into my site. I found this info on msdn.microsoft.com regarding the file Protocol. Seems in previous versions of IE you could follow the link to a local file but IE6 SP1 does not. Do you know if there is anyway around this?
**********
from http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/predefined/file.asp

The file protocol and sDrives parameter can be omitted and substituted with just the command line representation of the drive letter and file location. For example, to browse the My Documents directory, the file protocol can be specified as file:///C|/My Documents/ or as C:\My Documents\. In addition, a single '\' is equivalent to specifying the root directory on the primary local drive. On most computers, this is C:\.

Available as of Microsoft® Internet Explorer 3.0 or later.

Note Internet Explorer 6 Service Pack 1 (SP1) no longer allows browsing a local machine from the Internet zone. For instance, if an Internet site contains a link to a local file, Internet Explorer 6 SP1 displays a blank page when a user clicks on the link. Previous versions of Internet Explorer followed the link to the local file.
 
Can't you use a normal absolute URL to a page within their intranet?

If you create a link to a page on your HD, then any user must also have this
page in the same location on their HD. This is a security risk, which is why
IE6 SP1 had disabled this function.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================


Walter said:
Thanks for the response. I was able to do this before and it worked.
Seemed before, it would show my link as file://c:\test.doc but now frontpage
puts in the 3 forwardslashes. We are using this for clients within an
intranet who access our site. From a secure page on our webserver that they
can access, they can show links to files within their intranet that they can
then access (hopefully). Could this be a frontpage issue?
 
Thanks for the follow up Kevin.
My brain doesn't always switch gears totally
when I'm working on something else.

;-)
--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
Clients on an Intranet / LAN can access
other computers on the LAN with such a link
providing the drive is shared and in the same work group.
However, it can not be done if the link is on
a public server external to the Intranet / LAN
in any version of IE

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer

Walter said:
Thanks for the response. I was able to do this before and it worked.
Seemed before, it would show my link as file://c:\test.doc but now frontpage
puts in the 3 forwardslashes. We are using this for clients within an
intranet who access our site. From a secure page on our webserver that they
can access, they can show links to files within their intranet that they can
then access (hopefully). Could this be a frontpage issue?
 
Thanks. In versions prior to IE6 (SP1), you could have the link
on a public server external to the intranet/LAN and then those
clients on the intranet/LAN could access the file through the
public server link using the file Protocal
 
Then I would attribute the change to
a recent IE security update which
disabled cross domain scripting.
The domains in this case being:
the system, browser, and mail client.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top