Jump to content

Open windows explorer folder


Ty44ler

Recommended Posts

I'm trying to create a link on a page that opens a windows explorer folder.

 

The folder is on a remote computer that will be on the local network. (only users on the network will be accessing the site)

 

Can this be done?

 

I've tried using the exec() command to open it using command prompt, but I can't get it to work. It could also be opened using the browser, but it always puts the http:// root in front of it.

 

Ideas?

Link to comment
Share on other sites

nevermind, I found it.

 

Do you want to open a shared folder in Windows Explorer? You need to use a file: link, but there are caveats:

 

    * Internet Explorer will work if the link is a converted UNC path (file://server/share/folder/).

    * Firefox will work if the link is in its own mangled form using five slashes (file://///server/share/folder) and the user has disabled the security restriction on file: links in a page served over HTTP. Thankfully IE also accepts the mangled link form.

    * Opera, Safari and Chrome can not be convinced to open a file: link in a page served over HTTP.

 

http://stackoverflow.com/questions/855614/what-are-the-ways-to-make-an-html-link-open-a-folder

Seems so easy now... with the wrong search terms it seemed like it couldn't be done.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.