How do I change target of symlink in windows











up vote
22
down vote

favorite
6












Is it possible to change the target of a symlink or junction in Windows? In Linux it can be modified with:



ln -f









share|improve this question




























    up vote
    22
    down vote

    favorite
    6












    Is it possible to change the target of a symlink or junction in Windows? In Linux it can be modified with:



    ln -f









    share|improve this question


























      up vote
      22
      down vote

      favorite
      6









      up vote
      22
      down vote

      favorite
      6






      6





      Is it possible to change the target of a symlink or junction in Windows? In Linux it can be modified with:



      ln -f









      share|improve this question















      Is it possible to change the target of a symlink or junction in Windows? In Linux it can be modified with:



      ln -f






      windows symbolic-link






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 2 '12 at 16:48









      evan.bovie

      2,6781228




      2,6781228










      asked Jul 2 '12 at 14:39









      Eugeniu Torica

      245126




      245126






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          12
          down vote



          accepted










          With Windows Link Shell Extension installed, you can right-click on the link in Windows Explorer and check the properties. There is a tab that allows you to change the link directly.



          Sorry I can't say if this is possible without the extension installed as it is one of the first things I install after Windows.



          The Windows command link tool mklink does not allow this.



          There are, however, Windows equivalents for Linux commands. ln.exe is one:




          • http://unxutils.sourceforge.net/

          • http://schinagl.priv.at/nt/ln/

          • http://neosmart.net/Symlinks/

          • http://www.mkssoftware.com/






          share|improve this answer























          • This solution seems to work however I didn't test it thoroughly.
            – Eugeniu Torica
            Jul 23 '12 at 9:32










          • wow! Link Shell Extension, also notably, includes a Symbolic Link Driver for Windows XP among it's downloads.
            – n611x007
            Mar 27 '13 at 11:50












          • mklink would be the Windows-integrated command for linking (symbolic and hard).
            – Jinxed
            Feb 28 '16 at 22:08










          • @Jinxed, I already said that mklink doesn't do what the OP asked.
            – Julian Knight
            Feb 29 '16 at 22:36


















          up vote
          3
          down vote













          Just remove and recreate the link. That's all that -f does in Linux anyway.



          Also, here's a cool Windows Link Shell Extension.






          share|improve this answer




























            up vote
            0
            down vote













            The method belo works for me in Windows 7



            mklink TempLink NewTarget

            copy /l /y TempLink OldLink

            del TempLink





            share|improve this answer





















              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "3"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














               

              draft saved


              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f444016%2fhow-do-i-change-target-of-symlink-in-windows%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              12
              down vote



              accepted










              With Windows Link Shell Extension installed, you can right-click on the link in Windows Explorer and check the properties. There is a tab that allows you to change the link directly.



              Sorry I can't say if this is possible without the extension installed as it is one of the first things I install after Windows.



              The Windows command link tool mklink does not allow this.



              There are, however, Windows equivalents for Linux commands. ln.exe is one:




              • http://unxutils.sourceforge.net/

              • http://schinagl.priv.at/nt/ln/

              • http://neosmart.net/Symlinks/

              • http://www.mkssoftware.com/






              share|improve this answer























              • This solution seems to work however I didn't test it thoroughly.
                – Eugeniu Torica
                Jul 23 '12 at 9:32










              • wow! Link Shell Extension, also notably, includes a Symbolic Link Driver for Windows XP among it's downloads.
                – n611x007
                Mar 27 '13 at 11:50












              • mklink would be the Windows-integrated command for linking (symbolic and hard).
                – Jinxed
                Feb 28 '16 at 22:08










              • @Jinxed, I already said that mklink doesn't do what the OP asked.
                – Julian Knight
                Feb 29 '16 at 22:36















              up vote
              12
              down vote



              accepted










              With Windows Link Shell Extension installed, you can right-click on the link in Windows Explorer and check the properties. There is a tab that allows you to change the link directly.



              Sorry I can't say if this is possible without the extension installed as it is one of the first things I install after Windows.



              The Windows command link tool mklink does not allow this.



              There are, however, Windows equivalents for Linux commands. ln.exe is one:




              • http://unxutils.sourceforge.net/

              • http://schinagl.priv.at/nt/ln/

              • http://neosmart.net/Symlinks/

              • http://www.mkssoftware.com/






              share|improve this answer























              • This solution seems to work however I didn't test it thoroughly.
                – Eugeniu Torica
                Jul 23 '12 at 9:32










              • wow! Link Shell Extension, also notably, includes a Symbolic Link Driver for Windows XP among it's downloads.
                – n611x007
                Mar 27 '13 at 11:50












              • mklink would be the Windows-integrated command for linking (symbolic and hard).
                – Jinxed
                Feb 28 '16 at 22:08










              • @Jinxed, I already said that mklink doesn't do what the OP asked.
                – Julian Knight
                Feb 29 '16 at 22:36













              up vote
              12
              down vote



              accepted







              up vote
              12
              down vote



              accepted






              With Windows Link Shell Extension installed, you can right-click on the link in Windows Explorer and check the properties. There is a tab that allows you to change the link directly.



              Sorry I can't say if this is possible without the extension installed as it is one of the first things I install after Windows.



              The Windows command link tool mklink does not allow this.



              There are, however, Windows equivalents for Linux commands. ln.exe is one:




              • http://unxutils.sourceforge.net/

              • http://schinagl.priv.at/nt/ln/

              • http://neosmart.net/Symlinks/

              • http://www.mkssoftware.com/






              share|improve this answer














              With Windows Link Shell Extension installed, you can right-click on the link in Windows Explorer and check the properties. There is a tab that allows you to change the link directly.



              Sorry I can't say if this is possible without the extension installed as it is one of the first things I install after Windows.



              The Windows command link tool mklink does not allow this.



              There are, however, Windows equivalents for Linux commands. ln.exe is one:




              • http://unxutils.sourceforge.net/

              • http://schinagl.priv.at/nt/ln/

              • http://neosmart.net/Symlinks/

              • http://www.mkssoftware.com/







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Jul 2 '12 at 15:55

























              answered Jul 2 '12 at 15:49









              Julian Knight

              12.8k11534




              12.8k11534












              • This solution seems to work however I didn't test it thoroughly.
                – Eugeniu Torica
                Jul 23 '12 at 9:32










              • wow! Link Shell Extension, also notably, includes a Symbolic Link Driver for Windows XP among it's downloads.
                – n611x007
                Mar 27 '13 at 11:50












              • mklink would be the Windows-integrated command for linking (symbolic and hard).
                – Jinxed
                Feb 28 '16 at 22:08










              • @Jinxed, I already said that mklink doesn't do what the OP asked.
                – Julian Knight
                Feb 29 '16 at 22:36


















              • This solution seems to work however I didn't test it thoroughly.
                – Eugeniu Torica
                Jul 23 '12 at 9:32










              • wow! Link Shell Extension, also notably, includes a Symbolic Link Driver for Windows XP among it's downloads.
                – n611x007
                Mar 27 '13 at 11:50












              • mklink would be the Windows-integrated command for linking (symbolic and hard).
                – Jinxed
                Feb 28 '16 at 22:08










              • @Jinxed, I already said that mklink doesn't do what the OP asked.
                – Julian Knight
                Feb 29 '16 at 22:36
















              This solution seems to work however I didn't test it thoroughly.
              – Eugeniu Torica
              Jul 23 '12 at 9:32




              This solution seems to work however I didn't test it thoroughly.
              – Eugeniu Torica
              Jul 23 '12 at 9:32












              wow! Link Shell Extension, also notably, includes a Symbolic Link Driver for Windows XP among it's downloads.
              – n611x007
              Mar 27 '13 at 11:50






              wow! Link Shell Extension, also notably, includes a Symbolic Link Driver for Windows XP among it's downloads.
              – n611x007
              Mar 27 '13 at 11:50














              mklink would be the Windows-integrated command for linking (symbolic and hard).
              – Jinxed
              Feb 28 '16 at 22:08




              mklink would be the Windows-integrated command for linking (symbolic and hard).
              – Jinxed
              Feb 28 '16 at 22:08












              @Jinxed, I already said that mklink doesn't do what the OP asked.
              – Julian Knight
              Feb 29 '16 at 22:36




              @Jinxed, I already said that mklink doesn't do what the OP asked.
              – Julian Knight
              Feb 29 '16 at 22:36












              up vote
              3
              down vote













              Just remove and recreate the link. That's all that -f does in Linux anyway.



              Also, here's a cool Windows Link Shell Extension.






              share|improve this answer

























                up vote
                3
                down vote













                Just remove and recreate the link. That's all that -f does in Linux anyway.



                Also, here's a cool Windows Link Shell Extension.






                share|improve this answer























                  up vote
                  3
                  down vote










                  up vote
                  3
                  down vote









                  Just remove and recreate the link. That's all that -f does in Linux anyway.



                  Also, here's a cool Windows Link Shell Extension.






                  share|improve this answer












                  Just remove and recreate the link. That's all that -f does in Linux anyway.



                  Also, here's a cool Windows Link Shell Extension.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jul 2 '12 at 15:24









                  David Cowden

                  15919




                  15919






















                      up vote
                      0
                      down vote













                      The method belo works for me in Windows 7



                      mklink TempLink NewTarget

                      copy /l /y TempLink OldLink

                      del TempLink





                      share|improve this answer

























                        up vote
                        0
                        down vote













                        The method belo works for me in Windows 7



                        mklink TempLink NewTarget

                        copy /l /y TempLink OldLink

                        del TempLink





                        share|improve this answer























                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          The method belo works for me in Windows 7



                          mklink TempLink NewTarget

                          copy /l /y TempLink OldLink

                          del TempLink





                          share|improve this answer












                          The method belo works for me in Windows 7



                          mklink TempLink NewTarget

                          copy /l /y TempLink OldLink

                          del TempLink






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 13 at 12:18









                          Gyan

                          13.8k21641




                          13.8k21641






























                               

                              draft saved


                              draft discarded



















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f444016%2fhow-do-i-change-target-of-symlink-in-windows%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Terni

                              A new problem with tex4ht and tikz

                              Sun Ra