SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Member utopian's Avatar
    Join Date
    Mar 2002
    Location
    Michigan
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to create link to local folder

    How do I create a link on a website that will open a specific folder on the local drive of the end user?

    This is on a private website and each person visiting this website has the same folder structure on their computer. For example, each user will have C:\abc\def\. How do I make that folder open up on the users desktop from a website link?

    I tried the full path: C:\abc\def
    I also tried this: file:///c:\abc/def

    Neither seem to work.

    Thanks in advanced.
    -utopian

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    file:///c:/abc/def/ should do it, but I'm not 100% certain. My question is why are you using a local file structure when you could set up a private server and then connect everyone to it?

  3. #3
    SitePoint Member DavidTan's Avatar
    Join Date
    Apr 2008
    Location
    davidtan.org
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    file:///c:\abc/def seems to work in my case

  4. #4
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You cannot have a link using the file: protocol on a page served via the http: protocol, for security reasons.
    Birnam wood is come to Dunsinane

  5. #5
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Tommy, I think he said he was serving everything locally. (as in on the computer itself, not the server).

    I could be wrong though (goes back to copying files for transfer to the family's home).

  6. #6
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dan Schulz View Post
    Tommy, I think he said he was serving everything locally. (as in on the computer itself, not the server).
    If so, this shouldn't be a problem. But it's not the feeling I got from the original post:

    Quote Originally Posted by utopian View Post
    This is on a private website and each person visiting this website has the same folder structure on their computer.
    Birnam wood is come to Dunsinane

  7. #7
    SitePoint Member utopian's Avatar
    Join Date
    Mar 2002
    Location
    Michigan
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, so basically, here is exactly what I am doing with this...

    I am using Active Desktop on WinXP. I created a webpage that I'm using with Active Desktop to be an interactive wallpaper on a laptop. This webpage/wallpaper has buttons that link to different places. Some of the buttons link to websites, but I need some of the buttons to be able to open local folders on the laptop itself.

    Here is a test page I put together: http://www.mastermindconsult.net/lap...t1/adtest.html

    I created a folder called "abc" in C:\ and a folder called "def" inside of "abc." So I have this folder path on my local computer C:\abc\def. Clicking on any of the links in my example do not open that folder, which is what I'm trying to do.
    -utopian

  8. #8
    SitePoint Member utopian's Avatar
    Join Date
    Mar 2002
    Location
    Michigan
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No one knows of a way to make this work?
    -utopian

  9. #9
    SitePoint Zealot Ken Sharpe's Avatar
    Join Date
    Apr 2008
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried doing this at one point, it didn't work like I hoped it would. Are you sure this is your only option?

  10. #10
    Function Curry'er JimmyP's Avatar
    Join Date
    Aug 2007
    Location
    Brighton, UK
    Posts
    2,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's weird that it doesn't work... I would have thought that it would...

    Here is an idea...

    In the same directory where you have created the page make some shortcuts to the relevant places etc... The shortcuts are saved as .inc files so should be accessible through the site. But don't link to these shortcuts absolutely. Do it relatively so:

    Code:
    <a href="shortcuts/shortcut1.inc">Place 1</a>
    James Padolsey
    末末末末末末末末末末末末末末末末末末末
    Awesome JavaScript Zoomer (demo here)
    'Ajaxy' - Ajax integration solution (demo here)

  11. #11
    SitePoint Member utopian's Avatar
    Join Date
    Mar 2002
    Location
    Michigan
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What I was really trying/wanting to do was to be able to link to local folders from a remote web page. Linking to them via a local webpage that resides on the local computer works and that is what I am resorting to. I tried adding a .lnk to the end of the links and I added a shortcut folder and that worked, but it made another window pop up that you had to click on.

    Thanks for everyone's help!!!
    -utopian


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •