The catch (apart from the fact that you'd like to do this from Linux) is that Win32::File doesn't seem to have a constant for "ENCRYPTED", but it does return the correct bit set...
And running GetAttributes on an encrypted file yields:grep FILE_ATTRIBUTE_ENCRYPTED *\*.h Include/WinNT.h:#define FILE_ATTRIBUTE_ENCRYPTED 0x00004000
I realize that doesn't really help you from Linux, unless you set up an "isencrypted_d" service running on NT :)C:\>perl -MWin32::File -e"Win32::File::GetAttributes('README.TXT',$x); + printf qq(%X\n),$x;map {printf qq(%-10s %08X\n),$_,&{'Win32::File::'.$_}} qw +(ARCHIVE C OMPRESSED DIRECTORY HIDDEN NORMAL OFFLINE READONLY SYSTEM TEMPORARY)" 6021 ARCHIVE 00000020 COMPRESSED 00000800 DIRECTORY 00000010 HIDDEN 00000002 NORMAL 00000080 OFFLINE 00001000 READONLY 00000001 SYSTEM 00000004 TEMPORARY 00000100
If you're curious, the 0x2000 bit is "FILE_ATTRIBUTE_NOT_CONTENT_INDEXED"...
--
Mike
In reply to Re: Re: Re: Detecting Encrypted Files in a mounted Windows FS?
by RMGir
in thread Detecting Encrypted Files in a mounted Windows FS?
by traveler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |