Re: [python-win32] FIle I/O on Windows XP

2009-06-15 Thread Dave Angel
Tony Cappellini wrote: I was trying to see if I could speed up processing huge files (in the 10's of Gigabytes) by passing various values to the readline() method of the file object. No matter what I passed to readline() each call was slower and slower than passing no argument at all. I've use

Re: [python-win32] File Time: win32file vs Python ?

2009-07-03 Thread Dave Angel
Tim Roberts wrote: Robert wrote: os.path.getmtime('x.txt') 1193160881 int(win32file.GetFileAttributesExW('x.txt')[-2]) 1193153681 int(win32file.GetFileAttributesExW('x.txt')[-2]) - os.path.getmtime('x.txt') -7200 (Win XP) is this a bug, or is t

Re: [python-win32] subprocess and stdout

2009-07-27 Thread Dave Angel
Christopher Chapman wrote: I'm trying to write a "module" to a larger program. This module eventually needs to reference a config file with setup information in it, but I'm not there yet. I'm using the subprocess module to run an external antivirus program and trying to get the output written t

Re: [python-win32] determining information about a window

2009-08-10 Thread Dave Angel
Eric Blade wrote: This is kind of a weird question - I have a process that has two windows with the exact same name. I need to figure out some way to differentiate between the two windows - what functions are there available that I can call to find out information about the two windows, so that

Re: [python-win32] Converting DD MM YYYY into YYYY-MM-DD?

2009-08-19 Thread Dave Angel
Gilles Ganault wrote: I find it odd that the regex library can't handle European characters :-/ Can you show us an example where regex doesn't handle Unicode strings reasonably? DaveA ___ python-win32 mailing list [email protected] http:/

[python-win32] Find IP address for a UNC path

2009-08-27 Thread Dave Angel
I'd like to be able to figure out the IP address for a Windows XP file server (on a local subnet, not across the Internet), based on a successfully connected share. So I know the UNC name of the share, for example \\server\sharename\... (which was enabled by a NET USE to some other share on

Re: [python-win32] Find IP address for a UNC path

2009-08-27 Thread Dave Angel
hon.org/library/socket.html#socket.gethostbyname On Thu, Aug 27, 2009 at 2:59 PM, Dahlstrom, Roger wrote: Ping it and get the address. -Original Message- From: [email protected] [mailto: python-win32-bounces+rdahlstrom = directedge@py

Re: [python-win32] Unable to install PyWin32 with Python 2.6.2

2009-09-30 Thread Dave Angel
Terry Haran wrote: Hi Chris: I'm getting: error: Unable to find vcvarsall.bat when running setup.py install with pywin32-214 and Python 2.6.2 under Microsoft Windows XP [Version 5.1.2600] on a Panasonic CF-19 Series Toughbook. Any help would be greatly appreciated. Thanks, --Terry vcvarsall.b

Re: [python-win32] Still looking for a method to get CPUID info ...

2010-01-08 Thread Dave Angel
Gertjan Klein wrote: Tim Roberts wrote: However, I'll bet I know what it is. CPUID trashes ebx, and in the x86 calling sequence, that's supposed to be saved and restored. That's it! Now, both Python 2.5 and 2.6 (and 3.1, if I change the print statement) run this code successfully. Do

Re: [python-win32] permissions error

2010-02-12 Thread Dave Angel
Jeff Peery wrote: Hello, I'm running on vista and I'm getting a permissions error from win32com. I attached a print screen displaying the error message. It appears win32com is trying to write a file and vista UAC is blocking it. Why is win32com trying to do this and how do I fix it? the only meth

Re: [python-win32] MemoryError: can I use more?

2010-02-13 Thread Dave Angel
Greg Antal wrote: Dear Angelica: 2.2 GB is essentially the largest integer you express with 32 bits (2^31), and therefore the largest quantity of memory for which you can define an address. There are some tricks that really sophisticated programmers can do that let you use more than that, bu

[python-win32] ImportError on win32api

2010-03-15 Thread Dave Angel
Starting yesterday, one of my programs gets an import error trying to import win32api. The last time I ran the program was probably a month ago, and in the meantime I had updated the Python version, as follows: 2.6.4 (r264:75706, Jan 22 2010, 16:41:54) [MSC v.1500 32 bit (Intel)] This was ins

Re: [python-win32] Python script jumps back to 'main' in long running win32 event

2010-06-25 Thread Dave Angel
Robert Sudwarts wrote: Hi, I'm hoping that someone can help with this... I've seen some old posts which I think may refer to this same issue but I'm having difficulty understanding how to come up with a solution, and particularly where any "PumpWaitingMessages" should be located and/or/how/wheth

Re: [python-win32] granting SeServiceLogonRight on a network account with pywin32?

2010-10-14 Thread Dave Angel
On 2:59 PM, Tim Roberts wrote: Tim Roberts wrote: However, I admit that NT security is a twisty maze of little passages, all different, so it's quite possible this is just a wrong turn. And I wonder how many of you are old enough to get the reference in that sentence... But the adventure is

Re: [python-win32] Using ctypes - solved

2010-12-27 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Mico Siahaan wrote: æ«jYH·¬²‰oyÒ-Á«yÆ®±ì!zr­æ­yÛayø¥zë"ž "�Ú0±ìi–ŠÞ¬×°Mìm‡.™éí·*^u×¥zצzÜmjÉÚ™ë(iËnjYr¶ŸŠW§jg°jÇ^•ë^™ëq¶ÜmEè­Û ‰Ê&‰Ê,‰¨Zj|š†Š¢fÚž ¢rƒ«Š§jS²Æ xZè˜Èœ¡(š…¦§š'(²&¡i©òj(r‰’zw^®œ­†‰ðŠ}ön‹§që>š'(²&¡i©É¨h¡Ê&§+a¢z+€6­xÊ'Û°Þsm5ÓM¶ëžÓ¢œ­†‰ðŠ}ö§+a¢