Is it possible to change the target of a symlink or junction in Windows? In Linux it can be modified with:
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:
Just remove and recreate the link. That's all that -f does in Linux anyway.
Also, here's a cool Windows Link Shell Extension.
Note that if the symlink is a hanging symlink, i.e. points to a nonexistent location, then using linkshell extension will not allow you to edit the target, because this works as an extension to explorer which adds a tab to the properties context menu. If the symlink is hanging, explorer signals an error and will not allow you to access the link properties, and hence you will not be able to edit the target location.