win32 - create/access file properties on NTFS
David Bolen
db3l at fitlinxx.com
Fri Nov 2 18:00:15 EST 2001
datalim at email.com (Data) writes:
> How do I create/access the extra information while
> we right click a file on NTFS at the "Summary" tab?
>
> I checked ActivePython documentation
> but the win32file.CreateFile seems doesn't provide
> such feature.
Those are file resources, which you have to use separate APIs to
create and/or change. The win32api module wraps the appropriate
functions (e.g., LoadLibrary, BeginUpdateResource, EnumResourceNames,
FindResource, LoadResource, UpdateResource), with constants (e.g.,
RT_VERSION) in the win32con module.
MSDN has info (if you don't have a local copy it's available at
http://msdn.microsoft.com - the resources page is at
http://msdn.microsoft.com/library/en-us/winui/resource_0jsj.asp), as
I'm sure other information sites around would.
Also, Gordan McMillan's installer package
(http://www.mcmillan-inc.com) has a VersionInfo module used to set
versions on final executables that may prove useful as some working
code.
--
-- David
--
/-----------------------------------------------------------------------\
\ David Bolen \ E-mail: db3l at fitlinxx.com /
| FitLinxx, Inc. \ Phone: (203) 708-5192 |
/ 860 Canal Street, Stamford, CT 06902 \ Fax: (203) 316-5150 \
\-----------------------------------------------------------------------/
More information about the Python-list
mailing list