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.

Re: [python-win32] Question concerning wmi c.CIM_DataFile

2010-01-08 Thread Tim Golden
On 04/01/2010 21:18, Mike Driscoll wrote: The OP should check out Tim Golden's winshell module as it gives access to the common folders quite easily: http://timgolden.me.uk/python/winshell.html Thanks for the plug, Mike. Problem is that the OP is after running this code on multiple machines

Re: [python-win32] Exception: object has no attribute 'Win32_Process'

2010-01-08 Thread Tim Golden
On 04/01/2010 17:06, Wade Dyck wrote: [...] At this point I want to use Win32_Process.create() to xcopy some files from a third server, so I switch to delegation since impersonate won't allow access to network resources: remote = wmi.connect_server(server=self.server, user=r%s\%s

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

2010-01-08 Thread Tim Roberts
Dave Angel wrote: On general principle, I'd use push ebx ... pop ebx pairs around the cpuid instruction, if trashing ebx is a problem. Seems to me it's safer than making any assumptions about implicit saves/restores. That's what the uses ebx clause that I added to the proc

Re: [python-win32] 'No such interface supported' question

2010-01-08 Thread Tim Roberts
Gareth Walters wrote: Hi Nick, I have done some python work before but I new to the COM stuff. I am trying to Create a MXD and layers to it from python. I have been looking at this PythonNet stuff and it is all getting a bit blurry. I was wondering if you could give me some