windowsbatch-filecommandalias

Bulk change of shortcuts destination


I have a folder (in Windows) containing a lot of shortcuts to different files in different subdirectories of the folder “Important” on the disk C:.

Now I need to transfer the whole folder “Important” to the disk D:.

How to change all shortcuts so that they will point to the new destinations?

(Nothing but the drive letter will be changed in the destination paths.)


Solution

  • If you're running on an NTFS system, there is a Windows service called Distributed Link Tracking Client. In short, it tracks where you move files to, so that if you have shortcuts that point to a file that was moved, the shortcut gets updated automatically.

    In other words, you could just move your Important folder, and the shortcuts should continue to work.