Windows 目录(Win9x/Me 为 C:\Windows,Win2000/XP 为 C:\WinNT 或 C:\Windows)存放着系统核心文件,了解各子目录功能有助于系统维护、故障排查与安全加固。本文梳理主要系统目录及其在不同版本中的差异。
| 目录名 | Win9x/Me 位置 | Win2000/XP 位置 | 主要功能 |
|---|---|---|---|
| All Users | \Windows\All Users | \Documents and Settings\All Users | 所有用户共享的桌面、开始菜单、模板等 |
| Application Data | \Windows\Application Data | \Documents and Settings\用户名\Application Data | 应用程序专用数据(配置、插件、临时文件) |
| Applog | \Windows\Applog | 无 | 应用程序运行日志,记录调用文件、地址等 |
| Catroot | \Windows\Catroot | \Windows\System32\Catroot | 启动时硬件检测信息、驱动签名目录 |
| Command | \Windows\Command | \Windows\System32 | DOS 外部命令工具(如 format、fdisk、edit) |
| Config | \Windows\Config | \Windows\Config | MIDI 乐器定义文件 |
| Cookies | \Windows\Cookies | \Documents and Settings\用户名\Cookies | IE 存储的网站 Cookie(用户凭证、偏好设置) |
| Cursors | \Windows\Cursors | \Windows\Cursors | 鼠标指针动画文件 |
| Desktop | \Windows\Desktop | \Documents and Settings\用户名\Desktop | 当前用户桌面快捷方式、文件 |
| Downloaded Program Files | \Windows\Downloaded Program Files | \Windows\Downloaded Program Files | ActiveX 控件、Java Applet 等网页下载组件 |
| Drwatson | \Windows\Drwatson | \Windows\System32\Drwatson | Dr. Watson 错误报告工具日志 |
| Favorites | \Windows\Favorites | \Documents and Settings\用户名\Favorites | IE 收藏夹,重装系统前建议备份 |
| Fonts | \Windows\Fonts | \Windows\Fonts | 系统字体库,可增删字体文件 |
| Help | \Windows\Help | \Windows\Help | 系统帮助文件 |
| History | \Windows\History | \Documents and Settings\用户名\Local Settings\History | IE 浏览历史记录 |
| Inf | \Windows\Inf | \Windows\Inf | 硬件安装信息文件,右键“安装”可部署驱动 |
| Java | \Windows\Java | \Windows\Java | Java 运行时相关类库、包 |
| Media | \Windows\Media | \Windows\Media | 系统声音、MIDI 文件(启动音、错误音等) |
| NetHood | \Windows\NetHood | \Documents and Settings\用户名\NetHood | 网上邻居快捷方式存储 |
| Offline Web Pages | \Windows\Offline Web Pages | \Documents and Settings\用户名\Offline Web Pages | 离线网页缓存 |
| Pif | \Windows\Pif | 无 | DOS 程序快捷方式属性文件 |
| PrintHood | \Windows\PrintHood | \Documents and Settings\用户名\PrintHood | 打印机快捷方式存储 |
| Recent | \Windows\Recent | \Documents and Settings\用户名\Recent | “开始→文档”最近打开文件列表 |
| Samples | \Windows\Samples | 无 | 脚本、模板示例文件 |
| SendTo | \Windows\SendTo | \Documents and Settings\用户名\SendTo | 右键“发送到”菜单项 |
| ShellNew | \Windows\ShellNew | \Windows\ShellNew | 右键“新建”菜单模板文件 |
| Spool | \Windows\Spool\Printers | \Windows\System32\Spool\Printers | 打印任务临时缓冲文件 |
| Start Menu | \Windows\Start Menu | \Documents and Settings\用户名\Start Menu | 开始菜单程序快捷方式 |
| Sysbckup | \Windows\Sysbckup | 无 | 注册表、系统文件自动备份 |
| System | \Windows\System | \Windows\System32 | 核心系统文件、共享 DLL,删除软件时勿删此目录文件 |
| System32 | \Windows\System32 | \Windows\System32 | 32位核心系统文件、驱动、虚拟设备,极其重要 |
| Tasks | \Windows\Tasks | \Windows\Tasks | 计划任务文件 |
| Temp | \Windows\Temp | \Windows\Temp | 系统/程序临时文件,定期清理可释放空间 |
| Temporary Internet Files | \Windows\Temporary Internet Files | \Documents and Settings\用户名\Local Settings\Temporary Internet Files | IE 网页缓存,加速二次访问 |
| Web | \Windows\Web | \Windows\Web | HTML 模板、频道图标、窗口布局文件,曾被病毒利用 |
Documents and Settings,每用户独立拥有 Application Data、Cookies、Desktop、Favorites 等目录;Win9x/Me 多用户共享 \Windows 下同名目录。\Windows\System 和 \Windows\System32;Win2000/XP 统一在 \Windows\System32(\WinNT\System32)。Favorites、Cookies、Application Data、Desktop、Recent 等用户数据目录。Temp、Temporary Internet Files、History 释放磁盘空间。sfc /scannow(XP/2000)或从安装盘提取对应文件替换。