in reply to how to tell if file is hidden
Untested (access to a Windoze box is a problem at the moment - mines' just BSoDd:-((, but something like this should suffice...
use Win32::File qw/GetAttributes/; my $attrs; GetAttributes("some_file", \$attrs); if ($attrs | HIDDEN) { . . .
HTH ,
Update
Wouldn't appear to be my day today - thanx to almut who has pointed out the error of my ways - for
if ($attrs | HIDDEN) {,
read if ($attrs & HIDDEN) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to tell if file is hidden
by almut (Canon) on Jul 29, 2008 at 17:55 UTC |