How does Windows fix the invalid shortcut

  

When the shortcut points to the target are removed, Windows
is how to find the target to be removed?


When a shortcut is created, Windows assigns several IDs to the target pointed to by the shortcut to identify the target.


These IDs are stored in the file system, including the object identifier, the birth object identifier, the birth volume identifier, and so on.


The object identifier may change when a file is moved, but the birth object identifier and the birth volume identifier will not change, just as their name is the first time in the ID. It is determined when it is allocated, and it is born.


When the target pointed to by the shortcut is removed, Windows is determined by this birth object identifier.


Viewing the object identifier of a file can be achieved by the following command, where <FileName> is the object name of the ID to be viewed

fsutil objectid query <FileName>

Example:

fsutil objectid query D:\\Tencent\\QQ\\Bin\\QQ.exe

Copyright © Windows knowledge All Rights Reserved