• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2909
  • Last Modified:

Open folder from local system via html link

Hi Experts,

I have designed a basic webpage using html. It is saved in the client's shared area on our production floor. I need to open a folder via link from one of the pages. The required folder is in the local system say 'C:\dir\folder' and the webpage resides in the shared area. How should I need to point the folder from shared area to local system. From google I've tried
<A HREF="file://///Computer_name/Shared_Drive_name/Path/Filename.odt" TARGET="_blank">link to a file</A> with not much luck. I'm able to open objects from local system to client's shared area but the reverse is not happening. The folder which is need to open is in 'C' drive, I've tried something like this: <A HREF="file://///Computer_name//C:/dir/folder" TARGET="_blank">link to a file</A> which is not working.

Do you any other options/suggestions. Greatly appreciated.

We use IE7.

Thanks in advance.
1 Solution
vtk_blrAuthor Commented:
Are all those slashes intentional? Should only be 2
So this is the correct format
<A HREF="file://Computer_name/Shared_Drive_name/Path/Filename.odt" TARGET="_blank">
Dave BaldwinFixer of ProblemsCommented:
You are most likely blocked by browser security restrictions, even in IE7.  In general, web pages loaded from a remote system are not allowed to load local files.  They are also generally prevented from loading files on remote systems with the 'file://' protocol.  

To load remote files, they either need to be in the 'web server' directories to be loaded by a browser or you need to use something like Windows Explorer that runs under a logged in user that has permissions to access the files.  Any files 'opened' with a web browser are going to be 'read only' and not editable.
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Steve BinkCommented:
I concur with DaveBaldwin.  You're fighting an uphill battle against more than a decade of browser security evolution.  I think your best, and possibly only option, is to craft an extension or add-on to introduce this capability.  I would be hesitant to even recommend that, since you would essentially be coding a piece of malware.
vtk_blrAuthor Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for vtk_blr's comment #a39490924

for the following reason:

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now