Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 10-22-2009, 09:44 AM   #1 (permalink)
Registered User
 
Join Date: Oct 2009
Posts: 45
OS: VistaPremium


Arrow Link to computer files

How can I link (using the HTML tag <a>) to a file on my computer? I know that the link will only work for me...

<a href="C:\Users\User\Music\file.mp3">File.mp3</a>

<a href="file\\\C:\Users\User\Music\file.mp3">File.mp3</a>

Nothing works. I am using IE and I have allowed content of my computer to be displayed in the Internet options.
ss999 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 10-22-2009, 11:16 AM   #2 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros


Re: Link to computer files

Use <a href="file://C:/Users/User/Music/file.mp3">File.mp3</a>

And it should work.

Cheers,
Jamey
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-22-2009, 11:37 AM   #3 (permalink)
Registered User
 
Join Date: Oct 2009
Posts: 45
OS: VistaPremium


Re: Link to computer files

It doesn't work. Neither it does changing from / to \.
ss999 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-22-2009, 12:13 PM   #4 (permalink)
Design Team Member
 
Redcore's Avatar
 
Join Date: Aug 2007
Location: Jamestown, CA
Posts: 717
OS: Linux Mint 7

My System

Re: Link to computer files

This web page is physically on your computer, right?
__________________
Free Resources
PC Protection - Comodo Firewall | AVG Anti-Virus | WinPatrol | Ad-Aware | Spybot S&D | SpywareBlaster |
Web Design/Programming - KompoZer
(Editor) | Paint.NET (Graphic) | GIMP+GIMPShop (Graphic) | FileZilla (FTP Client) | Free Hosting |
Redcore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-22-2009, 12:18 PM   #5 (permalink)
Registered User
 
Join Date: Oct 2009
Posts: 45
OS: VistaPremium


Re: Link to computer files

No... It's on a free hosting website...
ss999 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-22-2009, 12:38 PM   #6 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros


Re: Link to computer files

That's why then, if the HTML file was local it would work but if your browser allowed opening of local files from a remote site it would pose a massive security risk. Hence it not working.
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-22-2009, 01:32 PM   #7 (permalink)
Registered User
 
Join Date: Oct 2009
Posts: 45
OS: VistaPremium


Re: Link to computer files

Doooh! I could make an HTML file, save it on my computer, and use it instead of the free hosting website. Would that work? I mean, I would be the only one able to see it, but that's my intention.

That way I could have a website without paying anything nor using any hosting site, is that true? Of course I would be the only one able to see it. That would be great. It's just a stupid custom homepage, with some links and a search box...
ss999 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-22-2009, 01:39 PM   #8 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros


Re: Link to computer files

Yep, as long as it's on your own computer that will work fine =]
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-22-2009, 02:50 PM   #9 (permalink)
Troubled
 
Join Date: May 2009
Posts: 71
OS: Computer = WXP, Server = linux w/ php 5


Re: Link to computer files

unless its php...
calthephenom is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-23-2009, 03:25 PM   #10 (permalink)
Registered User
 
Join Date: Oct 2009
Posts: 45
OS: VistaPremium


Re: Link to computer files

Alright, so I tried and I only .htm files work. Nothing happens with .mp3.

How can I make it work? Is it so hard...

Thanks.
ss999 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-23-2009, 05:25 PM   #11 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros


Re: Link to computer files

How does your browser handle .mp3 files? (It will usually open them in some player or try to download them).
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-24-2009, 02:43 AM   #12 (permalink)
Registered User
 
Join Date: Oct 2009
Posts: 45
OS: VistaPremium


Re: Link to computer files

It opens them with Windows Media Player.
ss999 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-25-2009, 02:49 PM   #13 (permalink)
Manager, Design
 
ebackhus's Avatar
 
Join Date: Apr 2005
Location: SATX
Posts: 14,262
OS: WinXP Pro SP3/Windows 7 RTM

My System

Blog Entries: 28
Send a message via ICQ to ebackhus Send a message via AIM to ebackhus Send a message via MSN to ebackhus Send a message via Yahoo to ebackhus Send a message via Skype™ to ebackhus
Re: Link to computer files

Right-click and select save-sa to save it to a location. Right now Media Player is set to automatically handle media links in web pages.
__________________


-----------------------------
There are no dumb questions, unless a customer is asking them.

Help in the fight against cancer and other serious illnesses.
ebackhus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-26-2009, 12:38 PM   #14 (permalink)
Registered User
 
Join Date: Oct 2009
Posts: 45
OS: VistaPremium


Re: Link to computer files

Quote:
Originally Posted by ebackhus View Post
Right-click and select save-sa to save it to a location. Right now Media Player is set to automatically handle media links in web pages.
I don't think that is related to any of this.


Maybe it's something in the Internet tools... Come on...
ss999 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-26-2009, 12:57 PM   #15 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros


Re: Link to computer files

No the problem is how your browser deals with .mp3 files... Which is what ebackhus was on about. So how do you want the .mp3 files to open?

And what is the HTML code you're using right now?

If something is happening then the easiest way to check that it's working correctly is:
- Internet Options->Programs Tab
- Click "Set Programs" under the "Internet Programs" section
- Check that .mp3 files are associated correctly

If all that's right then the problem is probably with the HTML file or the .mp3 location, so post your code up and we'll try to help =]

Cheers,
Jamey
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-26-2009, 02:21 PM   #16 (permalink)
Registered User
 
Join Date: Oct 2009
Posts: 45
OS: VistaPremium


Re: Link to computer files

I'm sorry ebackhus I didn't understand. :)

I have set windows media player to open mp3 files... That's how it was.

My code:

Code:
<!DOCTYPE PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> ... <body>

...

<div class="m"><a href="C:\Users\User\Music\File.mp3">File</a></div>

...

</body></html>
I know it's not the hole code, but I tried this one only and it didn't work so it's not due to something I'm not showing.

I have tried the file\\\ thing too...

Thanks.
ss999 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-26-2009, 02:27 PM   #17 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros


Re: Link to computer files

Change it to:
Code:
<a href="file://C:\Users\User\Music\File.mp3">File</a>
That uses the file protocol to open the file rather than just letting IE decide what to do...
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-30-2009, 03:46 PM   #18 (permalink)
Registered User
 
Join Date: Oct 2009
Posts: 45
OS: VistaPremium


Re: Link to computer files

It didn't work... :(
ss999 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-31-2009, 01:29 AM   #19 (permalink)
Moderator: Design
 
dm01's Avatar
 
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,446
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA

My System

Re: Link to computer files

Is C:\Users\User\Music\File.mp3 the URL of the file you wish to serve? This looks like more of a placeholder or demonstration text than a real URL. If this is in fact not the URL of the file, then replace this URL with the URL of the file.
__________________


Validate your Markup Validate your CSS Notepad++
Please use [html], [php], and [code] when posting code or markup.
I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message.
dm01 is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-31-2009, 03:28 AM   #20 (permalink)
Registered User
 
Join Date: Oct 2009
Posts: 45
OS: VistaPremium


Re: Link to computer files

I'm not that stupid...
ss999 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 04:17 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85