Link to a file share through an anchor tag

后端 未结 4 1691
死守一世寂寞
死守一世寂寞 2020-12-11 02:31

How do I format an HTML anchor tag to link to a shared network folder?

I tried the following and it does not like it.



        
相关标签:
4条回答
  • 2020-12-11 03:13
    <a href="file:///myserver/myfolder/myfile.docx">My Shared Folder</a>
    
    0 讨论(0)
  • 2020-12-11 03:32

    Try this URL:

    <a href="file://///myserver/myfolder/myfile.docx">
    
    0 讨论(0)
  • 2020-12-11 03:32

    I believe the correct mark up is:

        <a href="file:///\\serverpath\folder\filename.ext">
    
    0 讨论(0)
  • 2020-12-11 03:34

    I think it should formatted like this:

    file:///TheComputerNameOrIpAddress/FolderName/myFile.docx
    

    I'm not 100% sure that will work, but it's worth a shot. Good luck.

    0 讨论(0)
提交回复
热议问题