MoshiachNow wrote:
HI,
I try to open a link using %windir% in path:
<LI><A HREF="%windir%/temp/MainSetupLog.log">F </A></LI>
The browser does not seem to find the file.
However,If I paste in the Address window:
file:///%windir%/temp/MainSetupLog.log
It does open it properly.
Where is my problem ?
Thanks
First of all, what you want to do -- access a local file -- would work
only for you when the Web page itself is a local HTML file. Browsers
should not access local files from Web pages delivered from a Web
server. A browser that violates this rule has a serious security
vulnerability and should not be used.
The notation %windir% is symbolic for some actual local Windows
directory. You can't code it as a URL, even for a local HTML file.
Instead, you need the actual directory name. For example, your %windir%
for SeaMonkey (the browser that I use) might be [C:\Program
Files\SeaMonkey] while mine is [C:\SeaMonkey] because I don't install in
[Program Files].
Finally, the URL in the form <file:///[some local path]/[some local
file] is not the same as the URL in the form <[some local path]/[some
local file]>. The former is indeed for a local file in a local
directory. The latter is some file in a directory relative to the Web
page containing the reference.
--
David E. Ross
<http://www.rossde.com/>
Concerned about someone (e.g., Pres. Bush) snooping
into your E-mail? Use PGP.
See my <http://www.rossde.com/PGP/>