PoSH> $c = [drawing.color]'red'
PoSH> "{0:x}" -f $c.ToArgb()
ffff0000
;-)
gr /\/\o\/\/
"RichS" <RichS@discussions.microsoft.com> wrote in message
news:6E3D0DAE-E819-4CE1-B645-F10B91E5D447@microsoft.com...
> just out of curiosity what does red translate to in hex
> --
> Richard Siddaway
> Please note that all scripts are supplied "as is" and with no warranty
> Blog: http://richardsiddaway.spaces.live.com/
> PowerShell User Group: http://www.get-psuguk.org.uk
>
>
> "Marco Shaw" wrote:
>
>> PowerShell/.NET/COM have anything that can take a 'human readable' color
>> like "red" and convert it to hex, and vice-versa?
>>
>> Marco
>>
>>
>>