What are the possible 'Mode' values returned by PowerShell's Get-ChildItem cmdlet?

后端 未结 4 394
孤独总比滥情好
孤独总比滥情好 2021-01-31 01:35

When I run PowerShell\'s Get-ChildItem on a directory (or any cmdlet that returns file system items), it shows a column called Mode, like this:

             


        
4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-31 02:06

    These are all the file attribute names and there meanings can be found here:

    PS C:\> [enum]::GetNames("system.io.fileattributes")
    ReadOnly
    Hidden
    System
    Directory
    Archive
    Device
    Normal
    Temporary
    SparseFile
    ReparsePoint
    Compressed
    Offline
    NotContentIndexed
    Encrypted
    

提交回复
热议问题