PDA

View Full Version : Hyperlinks with %variables%


ghell
04-04-2003, 11:21 AM
I was wondering if there was any way to make a hyperlink acess a %var% like %SystemRoot% or whatever. This would make hyperlinking to font folders much easier but I can't get them working.:(
any help that isnt someone saying "You should get a book and find out for yourself" or anything like that would be much appreciated

[edit:]Insult removed.
Some times those people are right and some times wrong, but don't insult them.

Mhtml
04-04-2003, 01:30 PM
I think windows specific commands can only be used by windows generated html documents. At least that what I got when I tried to use them a while ago.

I think it could pose a security risk. I may be wrong though, I will look into it. :)

ghell
04-04-2003, 01:32 PM
thanks m8

Mhtml
04-04-2003, 01:35 PM
No problem. :), shouldn't take very long.
You should have a looksy for it to, may find it before me!

ghell
04-04-2003, 02:54 PM
i was looking for a bit (an hour or so) but i dont have a clue where to find it so I didnt find nething. I only burden otherpeople wih my problems when i have tried myself (or when im at the pub :P) lol

Mhtml
04-04-2003, 02:57 PM
Lol :).. I couldn't find anything either. I don't think that you can use windows variables to do it.

You can use things like request.serverVariables("Windows_Dir") in ASP.

ghell
04-04-2003, 03:00 PM
dang!
o well.. im slightly farmiliar with ASP. How do I use things like request.serverVariables("Windows_Dir") ???

Mhtml
04-04-2003, 03:41 PM
Well you can use it like: <a href="<%=Request.ServerVariables("WindDir")%>">

The fonts folder should always be /fonts so you can use that and stick /fonts outside of the asp bit. :)

ghell
04-09-2003, 04:31 PM
cheerz a lot m8 :D
dotnetpalyground and brinkster mean that i can use that anyway :D