What are the possible 'Mode' values returned by PowerShell's Get-ChildItem cmdlet? -
when run powershell's get-childitem on directory (or cmdlet returns file system items), shows column called mode
, this:
directory: c:\mydirectory mode lastwritetime length name ---- ------------- ------ ---- d---- 2/8/2011 10:55 directory1 d---- 2/8/2011 10:54 directory2 d---- 2/8/2011 10:54 directory3 -ar-- 2/8/2011 10:54 454 file1.txt -ar-- 2/8/2011 10:54 4342 file2.txt
i searched , searched google , local powershell book, not find documentation on meaning of mode
column.
what possible values of mode column , each 1 mean?
note mode see string representation of bitfield enum
hides in attributes
property. can figure out individual letters mean showing both side side:
ps> gci|select mode,attributes -u mode attributes ---- ---------- d----- directory d-r--- readonly, directory d----l directory, reparsepoint -a---- archive
in case, full list is:
d - directory - archive r - read-only h - hidden s - system l - reparse point, symlink, etc.
Comments
Post a Comment