views:

445

answers:

2

On a Website for our internal use i show links to local files and folders. the links are like this:

href="file://C:/example/"
href="file://C:/example/test.odt"

The Problem is now that the link to the directory does open in firefox itself with a useless directory listing. Useless because you can just see the files or open them but not copy, insert, delete... The link to the file work normal and the file is opend by OpenOffice. By changing the configuration of firefox and setting the following key to false I can open the directory in with explorer.exe but for the file I have to choose the right application.

network.protocol-handler.expose.file

Does someone know a way to get both to work like i want? Means that the Directory is shown by explorer.exe and all files are opened by the right application. This can be by configuring Firefox or windows, changing the links, or even by writing a small program which opens all the file protocol correctly and will be used as protocol handler for the file protocol in firefox.

Thanks Raffael

+1  A: 

I know this is not quite what you want, but you might take a look at the "launchy" addon for firefox:

https://addons.mozilla.org/en-US/firefox/addon/81/

Using this addon you can right click on a file link, go to "launchy" sub-menu, and tell it to open in explorer. This will browse directly to the folder as you want.

I want the same feature you want, however this "works" for now. I have asked the author of launchy to allow it to override the left-click behavior for certain protocols (so it would launch explorer with one click), but I don't have a response yet.

Dan
Thanks. i haven't seen this addon yet. I also tried some "IE Tab" addons (IE Tab 2 and IE Tab plus), where you can configure url based behaviour. I had some problems but tested only very short. I will go back to that problem later.
raffael