如何在 Windows 10 命令行中获取文件或文件夹的文件 ID?

buh*_*htz 5 windows windows-10

我想知道Windows 10 上某些文件的文件 ID(在 Linux etx 文件系统上称为Inode 号)。可以在 gui 中,但在命令行中更好。

解决方法是将bash(例如 git-bash 或 cygwin)与ls -i. 但我更喜欢 Windows 特定的解决方案。

buh*_*htz 8

使用 Windows 命令提示符

fsutil file queryfileid <filename>
Run Code Online (Sandbox Code Playgroud)

看起来不支持通配符。