RE: File Attributes
Chadwick Linden (Linden.J.Chadwick@icl.com)
Thu, 7 Oct 1999 13:31:01 +0100
Hi All
I'm a new guy on the block so be patient..
The problem is finding out file attribute (READONLY etc), and changing them
to ARCHIVE or NORMAL.
have used
use Win32::File;
Win32::File::GetAttributes('readonly.file',$roret);
Win32::File::GetAttributes('readwrite.file',$rwret);
print "RO: ".($roret & READONLY)."\n";
print "RW: ".($rwret & READONLY)."\n";
which works in a fasion, problem is
1. Win32::File::SetAttributes(''readonly.file', WHAT GOES HERE TO CHANGE
IT);
2. if i change the attributes to readwrite, none if the options pick it up
3. if I change it to ARCHIVE, all the options are picked up.
(OPTIONS)
ARCHIVE
COMPRESSED
DIRECTORY
HIDDEN
NORMAL
OFFLINE
READONLY
SYSTEM
TEMPORARY
TWO serious problems the first is i'm working on NT (hence the Win32), and
has anyone got any better way of doing the alterations of file attributes.
Thank you all if you can remove this thorn from my side
Linden C