Not logged in. · Lost password · Register
Forum: General Help and Support Syntax and Usage RSS
Link to local file
Avatar
satman1w #1
Member since Jun 2017 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Link to local file
Hi all,

On my wiki page I am explaining where the phonebook file in win 10 is located...
there is a line: C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Network\Connections\Pbk

I would like to link this to the real path on local machine!

Is it possible??
regards

satman
Avatar
virk #2
Member since Aug 2008 · 565 posts · Location: Aachen, Germany
Group memberships: Members
Show profile · Link to this post
I do not know but perhaps you find some helpful things here https://www.dokuwiki.org/wiki:syntax#windows_shares
Avatar
og #3
Member since May 2006 · 411 posts · Location: Bayern
Group memberships: Members
Show profile · Link to this post
Nearly impossible, due to security reasons in browsers. No one really want arbitrary websites to access files in the local filesystem, right? So several security switches had to be turned off, which MAY be ok inside organisations network.
I think, without the aid of a special browser plugin, this would be an hard task. Because always think about later browserupdates, which get securer and may kick out your current solution.
Oli...
Avatar
mason #4
Member since Jun 2017 · 1 post
Group memberships: Members
Show profile · Link to this post
I think it's nearly impossible
spanish to english translation, bullet force games
Avatar
SFITCS #5
User title: Scott Ferguson
Member since Dec 2014 · 463 posts · Location: Canberra, Australia
Group memberships: Members
Show profile · Link to this post
In reply to post #1
A simpler solution is to just encourage the viewer to copy and paste the link into the URL bar of their browser.

1. Which probably should be to C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Network\Connections\Pbk\_hiddenPbk
2. It's to the "dial-up modem phonebook", not the "phonebook"

Yes - you can link to it directly, but as others have noted - a plugin is required before Firefox or Chrome will automagically translate the borked way Windows does links, and to over-ride the security settings the prevent linking to local file from a web page.

There is a DokuWiki plugin that proposes to enable simpler linking to Windows filesystems - smblink plugin, and there are two plugins for Firefox: Local File system links, Local Link.
With IE it can be done via a system setting (add the DokuWiki to the Trusted Zones), which can be pushed out with AD (but teaching a reader to copy and paste may have more benefits).

Either M$ browser will open the local file link if you paste the link into the URL bar - however you'll need to modify it (see images below) so that it uses file://C:\$blah\ instead of file://///C:\$blah\
[Image: https://scottferguson.com.au/uploads/files/windows_links_0.png][Image: https://scottferguson.com.au/uploads/files/windows_links_1.png][Image: https://scottferguson.com.au/uploads/files/windows_links_2.png]
Avatar
Gombjuder #6
Member since May 2018 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Quite a good solution for firefox with Add-on and UNC path
I just found quite a good solution for me, that I can share with you.

Two thing are to be considered.
1) Ability of the browser to refer to local links.
2) Usage of UNC format

regarding 1) SFITCS provided me the hint regarding Local Filesystem Links https://addons.mozilla.org/en-US/firefox/addon/local-files…, because I use firefox and this Add-on is doing the job. It may also work with MS Internet Explorer without additionl plug-in.
NOTE: If you use the firefox add-on then you have to install the "native application" to make the add-on work, which is available for Windows Linux and Mac.

regarding 2) The UNC format of link to a local drive, for example in case of drive "C:" is "\\localhost\c$\"
Avatar
javim #7
Member for 3 months · 1 post
Group memberships: Members
Show profile · Link to this post
Nearly impossible, due to security reasons in browsers. No one really want arbitrary websites to access files in the local filesystem, right? So several security switches had to be turned off, which MAY be ok inside organisations network.

I think, without the aid of a special browser plugin, this would be an hard task. Because always think about later browserupdates, which get securer and may kick out your current solution.
Πορνο - webcam chat - порно
Avatar
tern #8
Member since Mar 2017 · 6 posts
Group memberships: Members
Show profile · Link to this post
There is a nice solution for that problem:

Use the firefox-add-on "openwith" https://addons.mozilla.org/en-US/firefox/addon/open-with/ and a local script. Depending on the OS you can use "xdg-open" (linux) or "start" (windows) to start the default program (https://www.quora.com/What-is-the-equivalent-of-xdg-open-o….

I am using this solution and it works very well.
Avatar
Michaelsy #9
Member since Jun 2015 · 467 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
To open a file or folder (only) on your own local PC via Firefox there is the addon "Local Filesystem Links" https://addons.mozilla.org/en-US/firefox/addon/local-files…

The equivalent for Chrome is the "Local Explorer" https://chrome.google.com/webstore/detail/local-explorer-f…

HTH - Michael Sy.
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
This post was edited on 2018-09-02, 14:38 by Michaelsy.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2018-10-23, 20:30:55 (UTC +02:00)