Цей вебсайт матиме обмежену функціональність, доки ми проводимо його обслуговування для поліпшення роботи. Якщо прочитана стаття не розв'язала вашу проблему і ви хочете поставити питання, наша спільнота підтримки з радістю допоможе вам на @FirefoxSupport у Twitter та /r/firefox на Reddit.

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

Open C:\folder\ link as file://C:\folder\

  • 4 відповіді
  • 5 мають цю проблему
  • 4 перегляди
  • Остання відповідь від asq

more options

I want to have links (on my local html page) written like C:\folder\ I want that they open as file://C:\folder\

How is it possible to do? Should I define new "c" protocol or something?

Firefox 27, Windows 7 Thank you!

I want to have links (on my local html page) written like C:\folder\ I want that they open as file://C:\folder\ How is it possible to do? Should I define new "c" protocol or something? Firefox 27, Windows 7 Thank you!

Змінено asq

Усі відповіді (4)

more options

Two ways you can define it in HTML Page

  1. Use the path as "file:///C:/Users/Hello.html"
  2. Use both the files in same folder and mention only the file name "Hello.html"
more options

iamjayakumars, thank you! But if I want to use the path as "C:/Users/Hello.html" and "C:/Users/" e.g. to open it in Windows File Explorer from Firefox link, how should I do it? Can I define a new protocol, or I need to write JavaScript to add "file:///" in front of such address?

more options

To open a local file you must use "file:///"

more options

Thank you, iamjayakumars! Can I hide "file:///" from end-user? It's more convenient (for example, in documentation like dokuwiki) if user just puts a link "C:/Users/" in a page and it works. It's harder for users to add every time "file:///". So can it be prepended automatically or redefined as a new protocol? Sorry for the newbie question. Thank you in advance.