Michael Kingsbury wrote:
> Does anyone have an example of determinting the file attibute bits of
> a file? I can get the bits, but have no easy way of determining
> what's what. I'm using the Win32::File::GetAttributes function.
>
Hi Mike.
The bitmasks COMPRESSED, DIRECTORY, HIDDEN, NORMAL, OFFLINE,
READONLY, SYSTEM and TEMPORARY are exported byt the module.
You can check for each one with:
Win32::File::GetAttributes ('file.ext', my $attrs);
if ($attrs & SYSTEM) {
:
}
HTH,
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]