Community
    • 登入

    TXT document how to add clickable link to a local intranet network directory

    已排程 已置頂 已鎖定 已移動 Help wanted · · · – – – · · ·
    7 貼文 2 Posters 10.0k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • minsikauM
      minsikau
      最後由 編輯

      HI.

      Notepadd++7.3.1 long term basic user.
      Trying to add a clickable link to a local network location directory.

      ie its a normal text document “big.txt” named.
      inside there is a url link in text for instance to a network location
      ie \server\directory\subdirectory that I want to be able to make a clickable link to then open the location in an exploirer window. I have fried file:///// (yes 5 forward slashes and converted all spaces to %20 and all backslashes to forward slashes but cant get the correct recognition.

      Any ideas. thanks.

      Claudia FrankC 1 條回覆 最後回覆 回覆 引用 0
      • Claudia FrankC
        Claudia Frank @minsikau
        最後由 編輯

        @minsikau

        file://server/…file

        Cheers
        Claudia

        1 條回覆 最後回覆 回覆 引用 0
        • minsikauM
          minsikau
          最後由 編輯

          thanks for that re the file.
          I want to open the directory instead of the specific file and tried the same syntax but it doesnt seem to work.

          ie file://///server/directory/subdirectory
          tried “file://///server/directory/subdirectory” too.

          1 條回覆 最後回覆 回覆 引用 0
          • minsikauM
            minsikau
            最後由 minsikau 編輯

            Appears to work on home pc windows 10 64bit just fine but work laptop 32bit windows 7 doesnt.
            Will retry and see why a difference.
            thanks for good reply Claudia.

            exact url
            file://///ARCHER_VR600/volume(sda1)
            works on windows 10. will send file to work and try it there and see if it even attempts to open it.

            1 條回覆 最後回覆 回覆 引用 0
            • minsikauM
              minsikau
              最後由 編輯

              thanks for the pointers. Nearly there.
              if the link looks like this
              file://\10.99.1.2\little nsw\
              it works in run/start area ie explorer but in Notepad++ the link k recognition stops at the first space. If I change that space to %20 the link extends across the whole address but then it doesnt open explorer.

              Any following ideas?

              1 條回覆 最後回覆 回覆 引用 0
              • minsikauM
                minsikau
                最後由 編輯

                I think I have it sorted.
                Now i am using this which works by using the file:// followed by server IP address followed by folders but any space must be replaced with %20 otherwise Notepad++ doesnt recognise the whole as a link.
                ie
                file://serverIP/folder/folder%20name/

                Claudia FrankC 1 條回覆 最後回覆 回覆 引用 0
                • Claudia FrankC
                  Claudia Frank @minsikau
                  最後由 編輯

                  @minsikau

                  that is url standard encoding. Spaces needs to be percent escaped.
                  See https://tools.ietf.org/html/rfc3986#page-12 for more information.

                  Cheers
                  Claudia

                  1 條回覆 最後回覆 回覆 引用 0
                  • 第一個貼文
                    最後的貼文
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors