[python-win32] Re: Problems with SetFileAttributes

Tim Golden tim.golden at viacom-outdoor.co.uk
Wed Mar 10 10:01:45 EST 2004


Roger> The wmi class Win32_Directory has Compress and UnCompress methods.
Roger> import win32com.client
Roger> wmi=win32com.client.GetObject('winmgmts:')
Roger> directories=wmi.ExecQuery("select * from Win32_Directory where
Name='h:\\\\misc'")
Roger> for directory in directories:
Roger>   directory.ExecMethod_('Compress')

I don't think I've ever seen an message on this list from Roger which
hasn't extended my knowledge of Python/Win32 in some useful way.

Thanks very much

Tim

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________



More information about the Python-win32 mailing list