Zaloguj | Zarejestruj | FAQ
Anonymous

hyperlink to folder

+ Odpowiedz

Posty: 6 Strona 1 z 1


hyperlink to folder

przez khanf » Cz sty 16, 2014 6:19 pm

Hi,

In a windows environment, I'm trying to setup an intranet site link, which links to their folders named by their windows usernames. I'm trying to set it up so they have access to their own folder

<a href="\\contoso\users\%username%">User U Drive</a>

However this works, this link takes them to the root where all the other directories can be seen.
<a href="\\contoso\users">User U Drive</a>

I'd really appreciate any input that may be useful
Avatar użytkownika

khanf

  • Posty: 4
  • Dołączył(a): Cz sty 16, 2014 4:30 pm

Re: hyperlink to folder

przez XainPro » Cz sty 16, 2014 8:14 pm

Where this link leads them to ?

<a href="\\contoso\users\%username%">User U Drive</a>

i think it's correct !
or you can map the network drive of their folder on their computer and add link to that drive :)
Avatar użytkownika

XainPro

  • Posty: 3933
  • Dołączył(a): Pt lut 17, 2012 8:10 pm

Re: hyperlink to folder

przez khanf » Cz sty 16, 2014 9:37 pm

Well it's not just for one person, it is a multiuser environment.

What it does is, it loads and IE page with \\contoso\users\%username% in the URL, however when i hit go with that in the URL it does what it is supposed to, instead of just opening a windows explorer window like it should and it does if i just do \\contoso\users but this is the root.
Avatar użytkownika

khanf

  • Posty: 4
  • Dołączył(a): Cz sty 16, 2014 4:30 pm

Re: hyperlink to folder

przez XainPro » Pt sty 17, 2014 1:16 pm

This cannot be done for security reasons. It is deliberately prevented.

it will work on internet explorer like this
<a href="file:///contoso/users/%username%">User U Drive</a>

but i am not sure about it :)
Avatar użytkownika

XainPro

  • Posty: 3933
  • Dołączył(a): Pt lut 17, 2012 8:10 pm

Re: hyperlink to folder

przez khanf » Pt sty 17, 2014 3:11 pm

Nope doesn't work. Its a bit closer if you add a couple more // after file. but then again you have to hit go on the browser. Had already tried this.
Avatar użytkownika

khanf

  • Posty: 4
  • Dołączył(a): Cz sty 16, 2014 4:30 pm

Re: hyperlink to folder

przez Albert4 » Pn mar 10, 2014 5:43 am

Thanks for the post!
Avatar użytkownika

Albert4

  • Posty: 1
  • Dołączył(a): Pn mar 10, 2014 5:15 am


+ Odpowiedz

Strona 1 z 1