[python-win32] Finding the selected file in Windows Explorer

2008-04-22 Thread Daniel Gonçalves
Hi! I need to find the selected file(s) in a Windows Explorer window from another program (I'd look at the window that last had focus). I found something in the following page that should do the trick: http://blogs.msdn.com/oldnewthing/archive/2004/07/20/188696.aspx However, it is not Python

Re: [python-win32] Finding the selected file in Windows Explorer

2008-04-22 Thread Michel Claveau
Hi! Since Vista, Windows-Explorer and Internet-Explorer are separate. Previously it was possible to drive Windows-Explorer via COM. Vista made that impossible. IMO, you must seek another way that COM. Sorry. Michel Claveau ___ python-win32

Re: [python-win32] Finding the selected file in Windows Explorer

2008-04-22 Thread Larry Bates
Daniel Gonçalves wrote: Hi! I need to find the selected file(s) in a Windows Explorer window from another program (I'd look at the window that last had focus). I found something in the following page that should do the trick: http://blogs.msdn.com/oldnewthing/archive/2004/07/20/188696.aspx

Re: [python-win32] Finding the selected file in Windows Explorer

2008-04-22 Thread Daniel Gonçalves
Larry Bates wrote: Daniel Gonçalves wrote: Hi! I need to find the selected file(s) in a Windows Explorer window from another program (I'd look at the window that last had focus). snip! Daniel, What do you mean by find the selected files. Give us a little more detail about your use case

Re: [python-win32] Finding the selected file in Windows Explorer

2008-04-22 Thread Tim Roberts
Daniel Gonçalves wrote: Hi! I need to find the selected file(s) in a Windows Explorer window from another program (I'd look at the window that last had focus). I found something in the following page that should do the trick: http://blogs.msdn.com/oldnewthing/archive/2004/07/20/188696.aspx

Re: [python-win32] Drag and Drop issues

2008-04-22 Thread Mike Driscoll
Alex Denham wrote: Hi, I'm trying to implement a drag and drop feature in my Tkinter based gui. I want to be able to drag a file from windows (explorer/desktop etc) into my program. Then i need my program to get the filepath for the file that was dropped. I've tried to search all over the

[python-win32] Size of directory

2008-04-22 Thread Tony Cappellini
When I right click on a directory with windows Explorer, a window is displayed showing Size: Size On Disk: Contains: Created: Attributes: (with the appropriate values for each entry) How do I get the same information via Python ? I've looked at os.stat but

Re: [python-win32] Size of directory

2008-04-22 Thread Larry Bates
Tony Cappellini wrote: When I right click on a directory with windows Explorer, a window is displayed showing Size: Size On Disk: Contains: Created: Attributes: (with the appropriate values for each entry) How do I get the same information via Python ? I've looked at os.stat but

Re: [python-win32] Size of directory

2008-04-22 Thread Dahlstrom, Roger
You have to walk the directory tree and sum each file's size. Windows does this too - try your right-click properties on a large directory and see how long it takes. That's also what du does. There are, however, some recipes that should make this fairly simple for you - try this:

[python-win32] Creating an MSI of pywin32

2008-04-22 Thread Brad Johnson
Hello everyone, I am attempting to create an MSI of pywin32 so I can have it silently install with another application. I am running into this error and traceback when executing python setup.py bdist_msi running install_egg_info Writing

Re: [python-win32] holiday

2008-04-22 Thread Brad Johnson
Mark Hammond mhammond at skippinet.com.au writes: Hi all, FYI, I'm off on a 2 week vacation to China (wh!) Hope it is an enjoyable break for you, you deserve it :-) ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] Creating an MSI of pywin32

2008-04-22 Thread Brad Johnson
Brad Johnson Brad.Johnson at ballardtech.com writes: Note, I can fix this by hard coding a valid version in \distutils\command\bdist_msi.py by changing sversion = %d.%d.%d % StrictVersion(version).version to sversion = 210 (where 210 is the build number) But, obviously this just side-steps