【问题标题】:Why can't I delete the contents of the 'INetCache' folder from the command prompt?为什么我不能从命令提示符中删除“INetCache”文件夹的内容?
【发布时间】:2019-01-18 14:22:46
【问题描述】:

我使用的是 Windows 10,需要更新批处理文件以清除“C:\Users\myUserName\AppData\Local\Microsoft\Windows\INetCache”文件夹的内容。这是保存 Internet Explorer 缓存的文件夹。

我原以为命令如下:

DEL /S /F /Q C:\Users\myUserName\AppData\Local\Microsoft\Windows\INetCache\*

这个命令执行没有问题,但是当我通过 Windows 资源管理器查看文件夹的内容时,它仍然有东西在里面。我说“东西”是因为虽然它看起来像一堆文件,但它们的行为不像典型文件。例如,当我在命令提示符下使用“dir”时,无论我使用哪些标志,我都看不到这些文件。当我检查这些文件的属性时,几乎没有任何与它们相关的信息。

为什么我的 DEL 命令没有清除这些文件?

Screenshot of "files" still present in my INetCache folder

Screenshot of the properties of one of these files

【问题讨论】:

  • “存储感”功能不行吗,你要模仿什么?

标签: windows command prompt


【解决方案1】:

我发现使用“rmdir”命令而不是“del”命令解决了我的问题。

rmdir "C:\Users\myUserName\AppData\Local\Microsoft\Windows\INetCache" /s /q

【讨论】:

    【解决方案2】:

    打开txt并保存.bat文件

    DEL /S /F /Q C:\Users\%username%\AppData\Local\Microsoft\Windows\INetCache\*
    pause
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-24
      • 1970-01-01
      • 2020-06-04
      • 2014-01-22
      • 1970-01-01
      • 2019-01-14
      相关资源
      最近更新 更多