跳至內容

特殊資料夾

本頁使用了標題或全文手工轉換
維基百科,自由的百科全書

特殊資料夾(英語:Special Folder),指那些不是絕對檔案路徑的資料夾。 這使得應用程式將詢問系統某一類別檔案的合適位置成為了可能,且不受版本和語言的系統限制。

在Windows Server 2003及更早版本中,像「開始功能表」這樣的資料夾在非英文版本的Windows上有不同的名稱。例如,在Windows XP的德語版本上,它是「Startmenü」。但是,從Windows Vista開始,所有版本的Windows都使用相同的英文命名資料夾,並且在Windows檔案總管中只顯示不同的名稱。在Windows 10中,使用者可以切換到另一種顯示語言,並且特殊資料夾的名稱將會更改。[1]

概要[編輯]

Windows 95開始,Windows 使用「特殊資料夾」的概念來代表儲存在電腦中的內容,這使得使用者無需再處理絕對檔案路徑,並且可以在不同系統以及不同應用程式之間修改。後續各版本 Windows 均對此功能作出了改進。

微軟的「為Windows而設計」(Designed for Windows)標誌[2]要求程式必須使用特殊資料夾來儲存文件和設定。

一個特殊資料夾可以被對映於一個實體位址,或一個「特殊的」資料夾。因此,特殊資料夾與環境變數相似。 事實上,很多在使用者層面設定的環境變數是由特殊資料夾的指向來決定的。

然而,特殊資料夾事實上不存在於檔案系統中——他們代表了Windows檔案總管中的樹形資料夾導航。這與Windows Shell namespace(Windows Shell 命名空間)類似。然而在Windows XP系統中,根級的命名空間是桌面:它包含了我的文件,我的電腦,網路上的芳鄰資源回收筒。一些與特殊資料夾相關聯的資料夾在物理上也確實存在。Windows檔案總管將特殊資料夾以及它的關聯資料夾合併起來顯示。例如「桌面」儲存在使用者個人資料夾中。

特殊資料夾列表[編輯]

下表列出了從Windows Vista起可用的大多數檔案系統和虛擬資料夾。還給出了引入每個特殊資料夾的作業系統版本。比如說,「%USERPROFILE%」和「%windir%」這樣的專案是Windows環境變數

特殊資料夾 用處 預設位置
Application Data 來儲存每個使用者的應用程式的特定檔案
Windows 98Windows Me
%windir%\Application Data
Windows 2000Windows XP
%USERPROFILE%\Application Data
Windows Vista 及更高版本上
%APPDATA%
公事包 用於在移動硬體上面同步檔案
Windows 95、Windows 98 和 Windows Me 上
%windir%\Desktop
在 Windows 2000 及更高版本上,預設情況下不建立,但可以在任何資料夾中建立。公事包和公事包瀏覽器外殼擴充 (SyncUI.dll) 中的Desktop.ini隱藏系統檔案包含其功能。在 Windows 10 版本 1703 及更高版本中刪除。
Cookies IE瀏覽器的快取
在 Windows 98 和 Windows Me 上
%windir%\Cookies
在 Windows 2000 及更高版本上
%USERPROFILE%\Cookies
在 Windows Vista 及更高版本上
%APPDATA%\Microsoft\Windows\Cookies
桌面目錄 包含儲存在電腦桌面上的檔案
在 Windows 95、Windows 98 和 Windows Me 上
%windir%\Desktop
在 Windows 2000 及更高版本上
%USERPROFILE%\Desktop
我的最愛 使用者收藏的檔案
在 Windows 98 和 Windows Me 上
%windir%\Favorites
在 Windows 2000 及更高版本上
%USERPROFILE%\Favorites
字型 包含已安裝的字型 %windir%\Fonts
歷史 用於儲存使用者的瀏覽器歷史記錄 %USERPROFILE%\Local Settings\History
Internet Cache 用儲存於使用者的 Internet 臨時檔案
在 Windows 98 和 Windows Me 上

%windir%\Temporary Internet Files

在 Windows 2000 和 Windows XP 上

%USERPROFILE%\Local Settings\Temporary Internet Files

在 Windows Vista 和 Windows 7

%LOCALAPPDATA%\Microsoft\Windows\Temporary Internet Files

Windows 8 及更高版本上

%LOCALAPPDATA%\Microsoft\Windows\INetCache

Local Application Data 用於儲存使用者和特定於電腦的應用程式設定
在 Windows 98 和 Windows Me 上
%windir%\Application Data
在 Windows 2000 和 Windows XP 上
%USERPROFILE%\Local Settings\Application Data
在 Windows Vista 及更高版本上
%LOCALAPPDATA%
文件 使用者儲存的文件
在 Windows 98 和 Windows Me 上
C:\My Documents
在 Windows 2000 和 Windows XP 上
%USERPROFILE%\My Documents
在 Windows Vista 及更高版本上
%USERPROFILE%\Documents
音樂 使用者儲存的音樂
在 Windows 98 和 Windows Me 上
C:\My Documents\My Music
在 Windows 2000 和 Windows XP 上
%USERPROFILE%\My Documents\My Music
在 Windows Vista 及更高版本上
%USERPROFILE%\Music
圖片 使用者儲存的圖片
在 Windows 98 和 Windows Me 上
C:\My Documents\My Pictures
在 Windows 2000 和 Windows XP 上
%USERPROFILE%\My Documents\My Pictures
在 Windows Vista 及更高版本上
%USERPROFILE%\Pictures
影片 使用者儲存的影片
在 Windows 98 和 Windows Me 上
C:\My Documents\My Videos
在 Windows 2000 和 Windows XP 上
%USERPROFILE%\My Documents\My Videos
在 Windows Vista 及更高版本上
%USERPROFILE%\Videos
程式 用於使用者的(所有)程式組和圖示
在 Windows 95、Windows 98、Windows 2000 和 Windows XP 上
%USERPROFILE%\Start Menu\Programs
在 Windows Vista 及更高版本上
%APPDATA%\Microsoft\Windows\Start Menu\Programs
最近 用於使用者的「我最近訪問的文件」
在 Windows 98 上
%USERPROFILE%\Recent
在 Windows 2000 和 Windows XP 上
%USERPROFILE%\My Recent Documents
在 Windows Vista 及更高版本上
%APPDATA%\Microsoft\Windows\Recent
傳送到 用於使用者的「傳送到」清單項
在 Windows 98、Windows 2000 和 Windows XP 上
%USERPROFILE%\SendTo
在 Windows Vista 及更高版本上
%APPDATA%\Microsoft\Windows\SendTo
開始功能表 用於使用者的「開始功能表」項
在 Windows 95 上
%windir%\Start Menu
在 Windows 98、Windows 2000 和 Windows XP 上
%USERPROFILE%\Start Menu
在 Windows Vista 及更高版本上
%APPDATA%\Microsoft\Windows\Start Menu
系統 Windows 系統目錄
在 Windows 95、Windows 98 和 Windows Me 上
16 位和 32 位媒體櫃和可執行檔
%windir%\System
其他一些 32 位媒體櫃和可執行檔
%windir%\System32
在 Windows 2000 及更高版本的 32 位 Windows 版本上
32 位媒體櫃和可執行檔
%windir%\system32
16 位媒體櫃和可執行檔
%windir%\System
在 64 位 Windows 版本上
64 位媒體櫃和可執行檔
%windir%\System32[3]
32 位媒體櫃和可執行檔
%windir%\SysWOW64[4]
儲存的遊戲 使用者儲存的遊戲 %USERPROFILE%\Saved Games
範本 用於使用者的文件範本
在 Windows 98 和 Windows Me 上
%windir%\ShellNew
在 Windows 2000 和 Windows XP 上
%USERPROFILE%\Templates
在 Windows Vista 及更高版本上
%APPDATA%\Microsoft\Windows\Templates

注意:

  • 「桌面」虛擬資料夾與「桌面」特殊資料夾不是一回事。桌面虛擬資料夾是 Windows Shell 命名空間的根目錄,其中包含其他虛擬資料夾。[5]
  • 「本機應用程式資料」與「應用程式資料」的不同之處在於,位於「本機」變體中的檔案也旨在特定於它所在的電腦。僅當使用者的設定檔是 Windows Server 域環境中的漫遊設定檔時,這才有意義。[6]
  • 與桌面一樣,「我的文件」虛擬資料夾與「我的文件」特殊資料夾不同。如果要求提供虛擬資料夾變體,它將在檔案對話方塊中顯示為「桌面」虛擬資料夾的子目錄,而不是使用者的設定檔目錄,因為它實際存在於硬碟機上。
  • 如果「我的文件」資料夾被移動(例如,移動到網路驅動器),嘗試通過 shell 變數訪問它將轉到原始的預設位置。

另見[編輯]

參考文獻[編輯]

  1. ^ How to Change the Display Language in Windows 10. How-To Geek. (原始內容存檔於November 6, 2015). 
  2. ^ Windows Software Logo Program
  3. ^ The use of %windir%\System32 for 64-bit libraries and executables in a 64-bit Windows OS is intended to not break existing 32-bit programs (already using %windir%\System32) that are recompiled without modifications as a 64-bit executable.
  4. ^ 32-bit executables have this directory mapped as %windir%\System32.
  5. ^ superyyrrzz. 技术文档. learn.microsoft.com. [2024-06-15] (中文(中國大陸)). 
  6. ^ Chen, Raymond. Taxes. The Old New Thing 1st. Pearson Education. 2006: 451. ISBN 0-321-44030-7.