Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open link with a Windows relative part %windir%

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
IL
HI,
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

Long live king Moshiach !
 
Thanks,

but in Browser URL I can specify
"file://%windir%/temp/k.txt" .

and it will open the file properly.
Why then can I not specify it in HTML ?

Long live king Moshiach !
 
Because Internet Explorer is an integral part of the windows OS what you put in the address bar of Internet Explorer can be and is interpreted by the operating system HTML code is interpreted by the browser core code.

Try pasting the same "file://etc" into another browser and see what happens.



Chris.

Indifference will be the downfall of mankind, but who cares?
Woo Hoo! the cobblers kids get new shoes.
People Counting Systems

So long, and thanks for all the fish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top