Change target for symbolic link in windows

How to change the purpose of an existing symbolic link. Any solution will work: console, powershell, etc.

It is important to think about making this change atomically, so the decision to delete the link and then create a new one does not work for me.

+5
source share
3 answers

This is possible using ZwFsControlFilefunction using the FSCTL_SET_REPARSE_POINTcontrol code . At least this is what I understood from how Far Manager does this through Process Monitor.

+2
source

You can use transactional NTFS. See the following functions:

, MS . , , Windows Server 2012.

+2

You can try to create a new symbolic link, and then rename the new link to overwrite the old one.

There are some possibilities here:

Is it possible to rename an atomic file (with the ability to overwrite) in Windows?

+1
source

All Articles