9 Replies Latest reply on Aug 4, 2006 9:21 AM by Newsgroup_User

    Linking to a file on CD

    Level 7
      Hi all

      I have a basic html page that I am running from a CD. It has a link to an
      exe file on the CD which is coded as:

      <a href="Myfiles.exe" target="_blank">

      When I open the html page and hover over the link, it appears in the status
      bar as:

      file:///D:/Myfiles.exe

      However when I try to click on the file, nothing at all happens.

      Anyone know what my problem is and know of a workaround? I have tried
      changing the link to:

      <a href="file:///D:/Myfiles.exe" target="_blank">

      or

      <a href=" http://d:/Myfiles.exe" target="_blank">

      And other similar options, but cant get it to work. I can however right
      click on the link and "Save Target As..." to get the file onto the pc, but
      would prefer the straight click option.

      Any help is much appreciated.

      Thanks

      Brendan
      ______________________________________________
      Rate your experiences with your UK and Ireland builders at
      http://www.ratethebuilder.co.uk
      =========================================


        • 1. Re: Linking to a file on CD
          Level 7
          RateTheBuilder wrote:
          > I have a basic html page that I am running from a CD. It has a link to an
          > exe file on the CD which is coded as:
          >
          > <a href="Myfiles.exe" target="_blank">
          >
          > However when I try to click on the file, nothing at all happens.

          Thank goodness! It would be a disaster if browsers let you launch an
          executable file just through clicking a link. Your browser's security
          settings are preventing you from doing something potentially very dangerous.

          --
          David Powers
          Adobe Community Expert
          Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
          http://foundationphp.com/
          • 2. Re: Linking to a file on CD
            Level 7
            Yeah, I know its a security issue, but I expected the security warning
            dialog which warned me about the file I was about to open and which gave me
            the option to either open or save the file.

            ______________________________________________
            Rate your experiences with your UK and Ireland builders at
            http://www.ratethebuilder.co.uk
            =========================================

            "David Powers" <david@example.com> wrote in message
            news:eat4m1$kju$1@forums.macromedia.com...
            > RateTheBuilder wrote:
            >> I have a basic html page that I am running from a CD. It has a link to an
            >> exe file on the CD which is coded as:
            >>
            >> <a href="Myfiles.exe" target="_blank">
            >>
            >> However when I try to click on the file, nothing at all happens.
            >
            > Thank goodness! It would be a disaster if browsers let you launch an
            > executable file just through clicking a link. Your browser's security
            > settings are preventing you from doing something potentially very
            > dangerous.
            >
            > --
            > David Powers
            > Adobe Community Expert
            > Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
            > http://foundationphp.com/


            • 3. Re: Linking to a file on CD
              Level 7
              The file I may be linking to might not necessarily be an exe file, but in
              this case it is a Self extracting zip file.

              The problem I have is how to link to it on the CD? Or if it was a Word
              document, how would I link to it?

              ______________________________________________
              Rate your experiences with your UK and Ireland builders at
              http://www.ratethebuilder.co.uk
              =========================================

              "David Powers" <david@example.com> wrote in message
              news:eat4m1$kju$1@forums.macromedia.com...
              > RateTheBuilder wrote:
              >> I have a basic html page that I am running from a CD. It has a link to an
              >> exe file on the CD which is coded as:
              >>
              >> <a href="Myfiles.exe" target="_blank">
              >>
              >> However when I try to click on the file, nothing at all happens.
              >
              > Thank goodness! It would be a disaster if browsers let you launch an
              > executable file just through clicking a link. Your browser's security
              > settings are preventing you from doing something potentially very
              > dangerous.
              >
              > --
              > David Powers
              > Adobe Community Expert
              > Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
              > http://foundationphp.com/


              • 4. Re: Linking to a file on CD
                Level 7
                RateTheBuilder wrote:
                > The problem I have is how to link to it on the CD? Or if it was a Word
                > document, how would I link to it?

                A Word document will normally open in a browser, so you just link to it
                in the same way as any other file.

                --
                David Powers
                Adobe Community Expert
                Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
                http://foundationphp.com/
                • 5. Re: Linking to a file on CD
                  Level 7
                  David

                  Yes, but you are missing the point to the question. What url should I use in
                  the link, especially when I dont know what drive letter the disk might be
                  run under?

                  Brendan
                  ______________________________________________
                  Rate your experiences with your UK and Ireland builders at
                  http://www.ratethebuilder.co.uk
                  =========================================

                  "David Powers" <david@example.com> wrote in message
                  news:eatcud$1b8$2@forums.macromedia.com...
                  > RateTheBuilder wrote:
                  >> The problem I have is how to link to it on the CD? Or if it was a Word
                  >> document, how would I link to it?
                  >
                  > A Word document will normally open in a browser, so you just link to it in
                  > the same way as any other file.
                  >
                  > --
                  > David Powers
                  > Adobe Community Expert
                  > Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
                  > http://foundationphp.com/


                  • 6. Re: Linking to a file on CD
                    Level 7
                    RateTheBuilder wrote:
                    > Yes, but you are missing the point to the question. What url should I use in
                    > the link, especially when I dont know what drive letter the disk might be
                    > run under?

                    URL stands for Universal Resource Locator - it identifies the location
                    of a resouce, either on the web or on a local system. If you don't know
                    the location, you can't provide a URL. You are attempting the impossible.

                    --
                    David Powers
                    Adobe Community Expert
                    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
                    http://foundationphp.com/
                    • 7. Re: Linking to a file on CD
                      Level 7
                      If you do a document relative link, it will assume the same location as the
                      parent file, however.

                      --
                      Murray --- ICQ 71997575
                      Adobe Community Expert
                      (If you *MUST* email me, don't LAUGH when you do so!)
                      ==================
                      http://www.dreamweavermx-templates.com - Template Triage!
                      http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                      http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                      http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                      ==================


                      "David Powers" <david@example.com> wrote in message
                      news:eav0ic$skb$1@forums.macromedia.com...
                      > RateTheBuilder wrote:
                      >> Yes, but you are missing the point to the question. What url should I use
                      >> in the link, especially when I dont know what drive letter the disk might
                      >> be run under?
                      >
                      > URL stands for Universal Resource Locator - it identifies the location of
                      > a resouce, either on the web or on a local system. If you don't know the
                      > location, you can't provide a URL. You are attempting the impossible.
                      >
                      > --
                      > David Powers
                      > Adobe Community Expert
                      > Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
                      > http://foundationphp.com/


                      • 8. Re: Linking to a file on CD
                        Level 7
                        Murray

                        I tried that, but as in my first post, the link came up in the status bar
                        as: file:///D:/Myfiles.exe and nothing happened when it was clicked.

                        Brendan
                        ______________________________________________
                        Rate your experiences with your UK and Ireland builders at
                        http://www.ratethebuilder.co.uk
                        =========================================

                        "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
                        news:eavf0f$fkf$1@forums.macromedia.com...
                        > If you do a document relative link, it will assume the same location as
                        > the parent file, however.
                        >
                        > --
                        > Murray --- ICQ 71997575
                        > Adobe Community Expert
                        > (If you *MUST* email me, don't LAUGH when you do so!)
                        > ==================
                        > http://www.dreamweavermx-templates.com - Template Triage!
                        > http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                        > http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                        > http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                        > ==================
                        >
                        >
                        > "David Powers" <david@example.com> wrote in message
                        > news:eav0ic$skb$1@forums.macromedia.com...
                        >> RateTheBuilder wrote:
                        >>> Yes, but you are missing the point to the question. What url should I
                        >>> use in the link, especially when I dont know what drive letter the disk
                        >>> might be run under?
                        >>
                        >> URL stands for Universal Resource Locator - it identifies the location of
                        >> a resouce, either on the web or on a local system. If you don't know the
                        >> location, you can't provide a URL. You are attempting the impossible.
                        >>
                        >> --
                        >> David Powers
                        >> Adobe Community Expert
                        >> Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
                        >> http://foundationphp.com/
                        >
                        >


                        • 9. Re: Linking to a file on CD
                          Level 7
                          Don't confuse bad links with nothing happening when you click on a good
                          link.

                          The link is good. The web page cannot open an exe file.

                          --
                          Murray --- ICQ 71997575
                          Adobe Community Expert
                          (If you *MUST* email me, don't LAUGH when you do so!)
                          ==================
                          http://www.dreamweavermx-templates.com - Template Triage!
                          http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                          http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                          http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                          ==================


                          "RateTheBuilder" <forums@NOSPAMratethebuilder.co.uk> wrote in message
                          news:eavq38$t27$1@forums.macromedia.com...
                          > Murray
                          >
                          > I tried that, but as in my first post, the link came up in the status bar
                          > as: file:///D:/Myfiles.exe and nothing happened when it was clicked.
                          >
                          > Brendan
                          > ______________________________________________
                          > Rate your experiences with your UK and Ireland builders at
                          > http://www.ratethebuilder.co.uk
                          > =========================================
                          >
                          > "Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
                          > news:eavf0f$fkf$1@forums.macromedia.com...
                          >> If you do a document relative link, it will assume the same location as
                          >> the parent file, however.
                          >>
                          >> --
                          >> Murray --- ICQ 71997575
                          >> Adobe Community Expert
                          >> (If you *MUST* email me, don't LAUGH when you do so!)
                          >> ==================
                          >> http://www.dreamweavermx-templates.com - Template Triage!
                          >> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                          >> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                          >> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                          >> ==================
                          >>
                          >>
                          >> "David Powers" <david@example.com> wrote in message
                          >> news:eav0ic$skb$1@forums.macromedia.com...
                          >>> RateTheBuilder wrote:
                          >>>> Yes, but you are missing the point to the question. What url should I
                          >>>> use in the link, especially when I dont know what drive letter the disk
                          >>>> might be run under?
                          >>>
                          >>> URL stands for Universal Resource Locator - it identifies the location
                          >>> of a resouce, either on the web or on a local system. If you don't know
                          >>> the location, you can't provide a URL. You are attempting the
                          >>> impossible.
                          >>>
                          >>> --
                          >>> David Powers
                          >>> Adobe Community Expert
                          >>> Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
                          >>> http://foundationphp.com/
                          >>
                          >>
                          >
                          >