Thread Erkennen ob Datei unter Windows "versteckt" ist
(3 answers)
Opened by Taulmarill at 2009-05-18 15:52
Funktioniert, vielen Dank!
Da das Modul nicht gerade intuitiv ist hier meine Lösung: Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 use strict; use warnings; use Win32::File qw/GetAttributes HIDDEN SYSTEM/; use File::Find; find( \&foobar, 'D:\perl' ); sub foobar { my $file = $_; my $attributes = 0; GetAttributes( $file, $attributes ); return if $attributes & ( HIDDEN | SYSTEM ); print "$file\n"; } $_=unpack"B*",~pack"H*",$_ and y&1|0& |#&&print"$_\n"for@.=qw BFA2F7C39139F45F78
0A28104594444504400 0A2F107D54447DE7800 0A2110453444450500 73CF1045138445F4800 0 F3EF2044E3D17DE 8A08A0451412411 F3CF207DF41C79E 820A20451412414 83E93C4513D17D2B |