<?xml version="1.0" encoding="windows-1252"?>
<node id="536521" title="File Properties/attributes in Win32" created="2006-03-14 06:27:18" updated="2006-03-14 01:27:18">
<type id="115">
perlquestion</type>
<author id="125553">
blackadder</author>
<data>
<field name="doctext">
Dear All,&lt;br&gt;&lt;br&gt;

I ma trying to obtain the file/folder properties under win32 (the attributes such as hidden, readonly...etc). I have the following simple code
&lt;code&gt;
use Win32::File;

my $path = $ARGV[0];

if (Win32::File::GetAttributes($path, $attrib))
{
   print $attrib, $/;
}
else
{
   print "Error\n";
}

&lt;/code&gt;
However, the output i get is just a number!&lt;br&gt;&lt;br&gt;
Can some please enlighten me on how can I get the attribes in human readble form?
&lt;br&gt;&lt;br&gt; 
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-125553"&gt;
Blackadder
&lt;/div&gt;&lt;/div&gt;</field>
</data>
</node>
