Re: [python-win32] zip of file using python

2010-04-08 Thread Preston Landers
If you plan to do a lot of ZIP file creation from Python, it's usually a whole lot faster, and may produce smaller files, if you call out to an external utility to do the compression instead of doing it from within the Python zipfile module. You can also pass compression arguments like -9 that pr

Re: [python-win32] zip of file using python

2010-04-08 Thread Tim Roberts
a h wrote: > thanks... i tried compression as zipfile.ZIP_DEFLATED and it works > fine. Now i used WinRar software to compress a 1.5GB file, it results > into a 42MB file where as using my script it results into 62 MB file. > Is it because of different format, if so, is there any winrar lib or > eq

Re: [python-win32] MSI installer or zip file for pywin32?

2010-04-08 Thread Kevin Horn
On Tue, Apr 6, 2010 at 5:26 PM, Mark Hammond wrote: > On 7/04/2010 6:13 AM, Bill Janssen wrote: > >> Just for the moment, I think I'll see if I can get things working by >> copying the DLLs into \WINDOWS\System32\, including Python26.dll. When >> that's set, I'll see if I can remove that step --

[python-win32] Detecting when the screen saver started

2010-04-08 Thread Phung Thuy Vuong
Hello! It's there a way to detect when the screen saver starts and when it stops in window? _ Got a phone? Get Hotmail & Messenger for mobile! http://go.microsoft.com/?linkid=9724464

Re: [python-win32] Finding DLL's which are in use (loaded)

2010-04-08 Thread Aahz
On Wed, Apr 07, 2010, Tony Cappellini wrote: > > I need to write a program which copies some dlls from one location > to another. However, if any applications which use these dll's are > running, Windows won't let the dll copy complete, until the apps > which have the dlls loaded have terminated.

Re: [python-win32] Finding DLL's which are in use (loaded)

2010-04-08 Thread Tony Cappellini
Thanks- but is that attempting to delete a dll? Is there a less-invasive way of detecting a dll in use? Is there a way I can find out which application(s) are using the DLL, so I put that information in a dialog box? These dlls are general purpose and can be used by many applications written by p

Re: [python-win32] MSI installer or zip file for pywin32?

2010-04-08 Thread Bill Janssen
Mark Hammond wrote: > On 8/04/2010 12:05 PM, Bill Janssen wrote: > > I don't think I've tried that config. I'll give it a shot. > > > > [After trying it...] Nope, that may be necessary, but it's not > > sufficient. I installed Python in a private directory "just for me", > > then copied in the

Re: [python-win32] zip of file using python

2010-04-08 Thread a h
thanks... i tried compression as zipfile.ZIP_DEFLATED and it works fine. Now i used WinRar software to compress a 1.5GB file, it results into a 42MB file where as using my script it results into 62 MB file. Is it because of different format, if so, is there any winrar lib or equivalent lib for pyth

Re: [python-win32] zip of file using python

2010-04-08 Thread Werner F. Bruhin
On 08/04/2010 09:52, a h wrote: hi I want to zip a folder using python script. I have written below piece of code, but i found that total size of all file is equal to the size of resultant zip file. so no compression is done. Its just put all the files in a folder and say save it with an extensio

Re: [python-win32] Finding DLL's which are in use (loaded)

2010-04-08 Thread niki
Tony Cappellini wrote: I need to write a program which copies some dlls from one location to another. However, if any applications which use these dll's are running, Windows won't let the dll copy complete, until the apps which have the dlls loaded have terminated. I'm looking for a way to scan/p

[python-win32] zip of file using python

2010-04-08 Thread a h
hi I want to zip a folder using python script. I have written below piece of code, but i found that total size of all file is equal to the size of resultant zip file. so no compression is done. Its just put all the files in a folder and say save it with an extension(.zip). May be i am wrong someway