為什麼windows仍然使用快捷方式檔案而不是符號連結?

隨著時間的推移,Windows不斷髮展並添加了更多的功能,您可能會發現自己很好奇為什麼它繼續使用較舊的“功能”,如快捷方式檔案。有鑑於此,今天的超級使用者問答帖子回答了困惑讀者的問題。...

為什麼windows仍然使用快捷方式檔案而不是符號連結?

隨著時間的推移,Windows不斷髮展並添加了更多的功能,您可能會發現自己很好奇為什麼它繼續使用較舊的“功能”,如快捷方式檔案。有鑑於此,今天的超級使用者問答帖子回答了困惑讀者的問題。

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。

問題

超級使用者讀者Peter Mortensen想知道為什麼Windows繼續使用快捷方式檔案而不是符號連結:

Windows XP and later versi*** support symbolic links, yet Windows continues to use shortcut files (which essentially store the location of the linked file as text). Why?

為什麼Windows繼續使用快捷方式檔案而不是符號連結?

答案

超級使用者貢獻者Jonno為我們提供了答案:

There are a number of reas***. 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 reas*** 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.


有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。

  • 發表於 2021-04-09 23:56
  • 閱讀 ( 39 )
  • 分類:網際網路

你可能感興趣的文章

18個你想了解的小而有用的macos功能

... mac上還有什麼容易錯過的? ...

  • 發佈於 2021-03-12 01:49
  • 閲讀 ( 46 )

什麼是符號連結(symlink)?如何在linux中建立一個

...符號連結,如何在Linux以及macOS和Windows上建立符號連結,為什麼需要這種特殊型別的快捷方式,等等。 ...

  • 發佈於 2021-03-19 23:12
  • 閲讀 ( 50 )

如何在linux上查詢和刪除斷開的符號連結

...在,而不是目標檔案。如果符號連結建立不正確,它可能什麼都沒有指向,但真正的目標是存在的。在這種情況下,重新建立符號連結將是解決方法。 也有可能是一個明顯損壞的符號連結被用作其他東西,例如檔案鎖的指示器...

  • 發佈於 2021-04-01 09:09
  • 閲讀 ( 48 )

如何在linux上使用stat命令

...您感興趣的特定資料元素有很大的空間。你也許也能理解為什麼我們建議對更長更復雜的咒語使用別名。

  • 發佈於 2021-04-02 19:25
  • 閲讀 ( 53 )

linux下如何使用which命令

...反,它是舊版本1.2.105。 which命令 我們上面演示的問題是為什麼要設計which命令。 在本例中,我們將使用which並將正在調查的程式的名稱作為命令列引數傳遞: which htg 報告在/usr/local/bin目錄中找到了htg的一個版本。因為該位置出...

  • 發佈於 2021-04-02 20:07
  • 閲讀 ( 47 )

如何在linux上使用chgrp命令

Linux上的chgrp命令更改檔案或目錄的組所有權。為什麼用它代替食物?有時瑞士**很不錯,但當你真的需要手術刀時,只有手術刀可以。 什麼時候應該使用chgrp 可以使用chgrp命令更改檔案或目錄的組所有權。chown命令允許您更改...

  • 發佈於 2021-04-03 04:21
  • 閲讀 ( 45 )

如何組織你的谷歌硬碟

...訊”窗格取消連結。下面是如何做到這一點。 相關:在Windows上建立符號連結(又稱符號連結)的完整指南 要開始,請單擊檔案或資料夾,然後按Shift+Z開啟特殊上下文選單。 導航到要連結檔案或資料夾的資料夾,然後單擊“新...

  • 發佈於 2021-04-03 06:35
  • 閲讀 ( 52 )

如何更改windows 10 update下載資料夾位置

...必須有足夠的空間存放更新檔案。如果系統驅動器已滿,Windows將自動嘗試使用其他驅動器,但只需執行幾個步驟,就可以強制Windows在其他地方下載更新。 預設情況下,Windows會將所有更新下載儲存到主驅動器上,這是Windows的安...

  • 發佈於 2021-04-04 06:29
  • 閲讀 ( 43 )

如何在mac上建立和使用符號連結(又名symlinks)

... /path/to/link 相關:如何在Mac上禁用系統完整性保護(以及為什麼不禁用) 請記住,在現代版本的macOS上,由於系統完整性保護功能,如果不更改低階韌體選項,就不允許寫入某些系統位置。您可以禁用該功能,但我們建議您不要...

  • 發佈於 2021-04-08 04:06
  • 閲讀 ( 47 )

如何同步mac和windows桌面

... 問題是:不是每個人都只使用mac。如果你想在Mac和執行Windows的PC之間同步你的桌面檔案呢? 相關:如何為您的需求和裝置選擇最佳的雲服務 這是可能的,但需要一點努力。首先,你需要某種雲服務,在Mac和Windows計算機之間同...

  • 發佈於 2021-04-08 05:43
  • 閲讀 ( 48 )
nrc220
nrc220

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦