La sessione di domande e risposte di oggi ci viene fornita per gentile concessione di SuperUser, una suddivisione di Stack Exchange, un raggruppamento di domande e risposte basato sulla comunità.
La domanda
Il lettore SuperUser Peter Mortensen vuole sapere perché Windows continua a utilizzare i file di collegamento invece dei collegamenti simbolici:
Windows XP and later versions support symbolic links, yet Windows continues to use shortcut files (which essentially store the location of the linked file as text). Why?
Perché Windows continua a utilizzare i file di collegamento invece dei collegamenti simbolici?
La risposta
Collaboratore SuperUser Jonno ha la risposta per noi:
There are a number of reasons. For example:
- You can store different levels of compatibility against several different shortcuts to the same exe file as they are interpreted by the shell, rather than the file system.
- Certain shortcut links do not actually exist in the file system. Some of them are simply references to GUIDs or special strings interpreted by the shell.
- You cannot include switches in a symbolic link. Sure, you can point to the exe file, but you cannot “tell” that exe file any further arguments.
- You cannot choose an icon for a symbolic link.
- You cannot choose what directory to work from in a symbolic link.
- Shortcut files do not have to point to just files, they can also be hyperlinks or protocol links (like.URL files).
- LNK files can exist on any file system. Symbolic links are handled by the file system itself, in the case of Windows, NTFS.
- There is no real need to replace them. They work, are tiny in size, and can be scaled up in the future should there ever be a need for more functionality to be added to them than what is already listed above.
- Administrative rights are required to create a symbolic link (with good reason), otherwise redirection of innocent files to malicious ones can be executed with very little work.
There are more reasons than this, but I think this is enough to get you started. Here is an MSDN blog link provided by grawity that provides more information about parts of this topic.
Hai qualcosa da aggiungere alla spiegazione? Audio disattivato nei commenti. Vuoi leggere più risposte dagli altri utenti di Stack Exchange esperti di tecnologia? Controlla la discussione completa qui.