Por que o Windows ainda usa arquivos de atalho em vez de links simbólicos?

Índice:

Por que o Windows ainda usa arquivos de atalho em vez de links simbólicos?
Por que o Windows ainda usa arquivos de atalho em vez de links simbólicos?

Vídeo: Por que o Windows ainda usa arquivos de atalho em vez de links simbólicos?

Vídeo: Por que o Windows ainda usa arquivos de atalho em vez de links simbólicos?
Vídeo: Moonlight App - Stream & Play PC / Steam Games on Smartphones & Tablets - Android / iPhone / iPad - YouTube 2024, Abril
Anonim
Como o Windows continua evoluindo e adicionando mais funcionalidades com o tempo, você pode ficar curioso para saber por que ele continua usando "recursos" mais antigos, como arquivos de atalho. Com isso em mente, a postagem de perguntas e respostas do SuperUser de hoje tem respostas para perguntas de um leitor confuso.
Como o Windows continua evoluindo e adicionando mais funcionalidades com o tempo, você pode ficar curioso para saber por que ele continua usando "recursos" mais antigos, como arquivos de atalho. Com isso em mente, a postagem de perguntas e respostas do SuperUser de hoje tem respostas para perguntas de um leitor confuso.

A sessão de perguntas e respostas de hoje nos é oferecida por cortesia do SuperUser, uma subdivisão do Stack Exchange, um agrupamento de sites de perguntas e respostas conduzido pela comunidade.

A questão

Leitor de SuperUser Peter Mortensen quer saber porque o Windows continua a usar arquivos de atalho em vez de links simbólicos:

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?

Por que o Windows continua a usar arquivos de atalho em vez de links simbólicos?

A resposta

Jonno, o colaborador do SuperUser, tem a resposta para nós:

There are a number of reasons. For example:

  1. 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.
  2. 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.
  3. 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.
  4. You cannot choose an icon for a symbolic link.
  5. You cannot choose what directory to work from in a symbolic link.
  6. Shortcut files do not have to point to just files, they can also be hyperlinks or protocol links (like.URL files).
  7. LNK files can exist on any file system. Symbolic links are handled by the file system itself, in the case of Windows, NTFS.
  8. 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.
  9. 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.

Tem algo a acrescentar à explicação? Som desligado nos comentários. Quer ler mais respostas de outros usuários do Stack Exchange com experiência em tecnologia? Confira o tópico de discussão completo aqui.

Recomendado: