登录 | 注册 | FAQ
Anonymous

hyperlink to folder

+ 发表回复

6 篇帖子 分页: 1 / 1


hyperlink to folder

khanf » 周四 1月 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
头像

khanf

  • 帖子: 4
  • 注册: 周四 1月 16, 2014 4:30 pm

Re: hyperlink to folder

XainPro » 周四 1月 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 :)
头像

XainPro

  • 帖子: 3933
  • 注册: 周五 2月 17, 2012 8:10 pm

Re: hyperlink to folder

khanf » 周四 1月 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.
头像

khanf

  • 帖子: 4
  • 注册: 周四 1月 16, 2014 4:30 pm

Re: hyperlink to folder

XainPro » 周五 1月 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 :)
头像

XainPro

  • 帖子: 3933
  • 注册: 周五 2月 17, 2012 8:10 pm

Re: hyperlink to folder

khanf » 周五 1月 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.
头像

khanf

  • 帖子: 4
  • 注册: 周四 1月 16, 2014 4:30 pm

Re: hyperlink to folder

Albert4 » 周一 3月 10, 2014 5:43 am

Thanks for the post!
头像

Albert4

  • 帖子: 1
  • 注册: 周一 3月 10, 2014 5:15 am


+ 发表回复

分页: 1 / 1