- or download this
Argument "READONLY" isn't numeric
- or download this
# get current file attributes
Win32::File::GetAttributes($file, my $attr);
# set file attributes to allow editing
$attr |= READONLY;
Win32::File::SetAttributes($file, $attr);
- or download this
my $setReadOnlyAttribute = READONLY;
# set file attributes to allow editing
Win32::File::SetAttributes($file, $setReadOnlyAttribute);