[enum]::getvalues([System.IO.FileAttributes])
Or you can use this function made my $hay@Israel :
function Get-EnumValues{[enum]::getvalues($args[0]) | select @{n="Name";e={$_}},@{n="Value";e={$_.value__}} | ft -auto }
[enum]::getvalues([System.IO.FileAttributes])
Or you can use this function made my $hay@Israel :
function Get-EnumValues{[enum]::getvalues($args[0]) | select @{n="Name";e={$_}},@{n="Value";e={$_.value__}} | ft -auto }
Frenquently asked questions about everyday real problems in PowerShell
No comments:
Post a Comment