Internet explorer Internet Explorer缓存位置

Internet explorer Internet Explorer缓存位置,internet-explorer,caching,Internet Explorer,Caching,当前用户的IE缓存在哪里?默认情况下,Internet临时文件(用于Internet Explorer)的位置为: Windows 95、Windows 98和Windows ME c:\WINDOWS\Temporary Internet Files Windows 2000和Windows XP C:\Documents and Settings\\[User]\Local Settings\Temporary Internet Files Windows Vista和Windows 7

当前用户的IE缓存在哪里?

默认情况下,Internet临时文件(用于Internet Explorer)的位置为:

Windows 95、Windows 98和Windows ME

c:\WINDOWS\Temporary Internet Files
Windows 2000和Windows XP

C:\Documents and Settings\\[User]\Local Settings\Temporary Internet Files
Windows Vista和Windows 7

%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files

%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\Low
Windows 8

%userprofile%\AppData\Local\Microsoft\Windows\INetCache
Windows 10

%localappdata%\Microsoft\Windows\INetCache\IE

一些信息来自。

Internet临时文件文件夹的位置取决于您的Windows版本以及您是否使用用户配置文件

  • 如果您有Windows Vista,则临时Internet文件位于这些位置(请注意,在您的电脑上,它们可能位于C以外的某些驱动器上):

    C:\Users[用户名]\AppData\Local\Microsoft\Windows\Internet临时文件\ C:\Users[用户名]\AppData\Local\Microsoft\Windows\Temporary Internet Files\Low\

    请注意,要访问这些文件夹,您必须更改Windows资源管理器的设置以显示所有类型的文件(包括受保护的系统文件)

  • 如果您有Windows XPWindows 2000,则临时Internet文件位于此位置(请注意,在您的电脑上,它们可能位于C以外的某些驱动器上):

    C:\Documents and Settings[用户名]\Local Settings\临时Internet文件\

    如果您只有一个用户帐户,则将[用户名]替换为管理员,以获取
    临时Internet文件
    文件夹的路径

  • 如果您有Windows MeWindows 98Windows NTWindows 95,则
    index.dat
    文件位于以下位置:

    C:\Windows\Internet临时文件\
    C:\Windows\Profiles[用户名]\Internet临时文件\

    请注意,在您的计算机上,Windows目录可能不是
    C:\Windows
    ,而是其他一些目录。如果您的
    Windows
    目录中没有
    Profiles
    目录,请不要担心-这只意味着您没有使用用户配置文件


如果要以独立于平台的方式查找文件夹,应查询注册表项:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Cache

如果您使用的是.Net,那么您需要的代码是

GetFolderPath(Environment.SpecialFolder.InternetCache)


如果您希望代码删除这些文件以及FireFox临时文件和Flash共享对象/Flash Cookie,请单击我的名字

我不知道XP的答案,但对于后者:

%USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files\Low
%USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5
-这些是缓存位置。其他提到的
%USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary internetfile
但这不是此目录中的缓存,只是存储在其他地方的文件的反射

但您可以枚举
%USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary internetfile
并获取所需的所有文件,但您应该感到沮丧的是,file walker没有检测到explorer显示的所有内容


此外,如果您使用我提供的链接,您可能需要从WinAPI获得链接。

如果它已被移动,您也可以(在IE 11中,我很确定这至少可以转换为10):

  • 工具-互联网选项
  • 在浏览历史记录下,单击设置
  • 在当前位置下显示目录名
注意:“查看文件”按钮将在此处打开Windows资源管理器窗口


例如,我的显示C:\BrowserCache\IE\Temporary Internet Files

您正在寻找Windows API吗


只需使用带有CSIDL_INTERNET_缓存标志或FOLDERID_InternetCache标志的函数即可获得确切位置。这样你就不用担心操作系统了。前一个函数在Windows XP中工作。后者适用于Windows Vista+。

在Windows serven和8及更高版本中,可在此位置找到IE缓存


C:\Users\Username\AppData\Local\Microsoft\Windows\INetCache

为什么投票关闭?这个问题应该问超级用户,而不是StackOverflow。+1“只是存储在其他地方的文件的反映。”-诗意而准确。但是,遗憾的是,这里的链接对于Windows10来说并不准确。有人有更新吗?