You have an extra / in front of the c: drive. Should only be two not three.
Certain files do behave differently in IE. Excel, Word, etc. are what is known as "Active Documents". That means IE knows how to view them and is able to load Word and Excel interfaces into the IE container in order to view the file. IE is not going to ask
you to download a file in this case since it knows how to view the file. Browsers generally will only ask you to open or save a file if they do not know, or are designed not to view a file. To IE though, a word or excel doc is the same as a web page. It's
just a link that it knows how to view.
Just to make sure, you do understand that this type of link will only work on your computer and not anyone else viewing the page since the file doesn't exist on their computers. I'm only mentioning this because many people mistakenly use file protocol for
a link thinking it's for downloading files.
Don't forget to mark useful responses as Answer if they helped you towards a solution.
markfitzme
Star
14433 Points
2227 Posts
Re: Open local file via href
Apr 19, 2012 12:37 PM|LINK
You have an extra / in front of the c: drive. Should only be two not three.
Certain files do behave differently in IE. Excel, Word, etc. are what is known as "Active Documents". That means IE knows how to view them and is able to load Word and Excel interfaces into the IE container in order to view the file. IE is not going to ask you to download a file in this case since it knows how to view the file. Browsers generally will only ask you to open or save a file if they do not know, or are designed not to view a file. To IE though, a word or excel doc is the same as a web page. It's just a link that it knows how to view.
Just to make sure, you do understand that this type of link will only work on your computer and not anyone else viewing the page since the file doesn't exist on their computers. I'm only mentioning this because many people mistakenly use file protocol for a link thinking it's for downloading files.