Getting Windows File Attributes

Read the article this discussion is about


  1. DigiAvitar
  2. pyuson

This archived discussion is "read only".
For the corresponding "live" discussions, post in the active topic forum here.



Top 1.   Nov 24, 2003 1:30 PM

» DigiAvitar - Perl Win32::File

What does a return code of "-1" mean?

After issuing the following command all test are TRUE:

Win32::File::GetAttributes($filename, $attr);
if ($attr & DIRECTORY) { print "$filename Directory\n" }
if ($attr & NORMAL) { print "$filename Normal\n" }
if ($attr & HIDDEN) { print "$filename Hidden\n" }
if ($attr & READONLY) { print "$filename Read Only\n" }
if ($attr & COMPRESSED) { print "$filename Compressed\n" }

-- posted by DigiAvitar



Top 2.   Jan 24, 2004 1:39 PM

» pyuson - Re: Perl Win32::File

In response to message posted by DigiAvitar:

A response of -1 means that the file does not exist

-- posted by pyuson



Please follow the guidelines set forth in the Suite101 Posting Etiquette when adding to the discussion.