什么是“区域。标识符”文件,以及如何防止它们被创建?

在使用 Process Monitor 监视 I/O 时,我经常看到名为“ blabla.exe: Zone. Identifier”的文件。
这些文件可以在网络驱动器上看到。

alt text

  • 什么是 Zone.Identifier文件?
  • 冒号在文件名中是什么意思?
  • 冒号是否与文件的扩展属性相关?
  • 当我将代码文件从文件资源管理器复制到 WSL 目录时,如何防止这些文件被创建?
104553 次浏览

The text after the colon is an identifier for an "Alternate Data Stream". ADS is used to store meta-information about the file. For example, the Zone identifier stores whether the file was downloaded from the internet.

Some specific info: About URL Security Zones, Zone.Identifier Stream Name

Best is to google around for more information. Eg. this, this and this.

Finally, here's Streams, the Sysinternals tool for ADS.