Anyone know of a way to post a link to a windows UNC path? I was thinking of putting one as a menu item.

Comments

ffletch’s picture

Anyone know how to do this?

ffletch’s picture

After a bit more research I found that using this syntax:
<a href="file://///<server>/<share>">link text</a>
works only if you use it in a local file. Meaning that you actually see the share contents in the browser window. It does not work when used in a file that is served to you by a web server. In the javascript console you will see a Security error. This is by design according to: http://kb.mozillazine.org/Links_to_local_pages_don't_work

All of the above assumes Firefox 2.0.0.1.

When I tried to click on the same link in IE 7 on XP it just opens a windows explorer window (as in explorer.exe not iexplore.exe). In IE7 on Vista it gives you a security prompt and if you say yes, it does the same thing.

So it looks like this is a no go.