Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
We don't bite newbies here... much

Comment on

Dear All,

I ma trying to obtain the file/folder properties under win32 (the attributes such as hidden, readonly...etc). I have the following simple code
use Win32::File; my $path = $ARGV[0]; if (Win32::File::GetAttributes($path, $attrib)) { print $attrib, $/; } else { print "Error\n"; }
However, the output i get is just a number!

Can some please enlighten me on how can I get the attribes in human readble form?


In reply to File Properties/attributes in Win32 by blackadder

and:  <code> code here </code>

  • Please read these before you post! —
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others examining the Monastery: (8)
    As of 2013-12-20 19:48 GMT
    Find Nodes?
      Voting Booth?

      How do you parse XML?

      Results (432 votes), past polls