Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 5 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:

share|improve this answer
    
This solution seems to work however I didn't test it thoroughly. – Jenea 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 at 22:08
    
@Jinxed, I already said that mklink doesn't do what the OP asked. – Julian Knight Feb 29 at 22:36

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.