且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

可以将自定义属性添加到NTFS文件夹吗?

更新时间:2022-11-18 19:49:13

如果你感觉很勇敢(或者愚蠢)也许可以选择替代数据流

If you are feeling brave (or foolish) perhaps an Alternative Data Stream would be an alternative.

我不确定是否可以应用到一个目录而不是一个普通的文件,而且这个目录需要考虑:

I am not sure if can be applied to a directory as opposed to a normal file and it's littered with concerns that need to be considered:


  1. 没有标准的Windows用户工具列出它们(例如,无法从资源管理器或cmd提示符查看,但是可以在大多数情况下打开程序给出了正确的名称)。
  2. 它们不会从NTFS文件系统中很好地转移出去。
  3. 它们也可能会引起一些AV标志,知道。

快乐编码。