>> If you want to post some specific code examples, I'm
>> happy to talk you through possible optimisations.
>>
>> TJG
>
> Sorry I didn't reply right away. Here's the straight WMI code I'm
> using:
>
> c = wmi.WMI()
> for i in c.Win32_ComputerSystem():
> mem = int(i.TotalPhysicalMemor
On Feb 28, 3:08 pm, Tim Golden <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > On Feb 27, 3:32 pm, Tim Golden <[EMAIL PROTECTED]> wrote:
> >> [EMAIL PROTECTED] wrote:
> >>> The problem I have is that since I import WMI, it takes a long time
> >>> and we have users complaining about it. So
[EMAIL PROTECTED] wrote:
> On Feb 27, 3:32 pm, Tim Golden <[EMAIL PROTECTED]> wrote:
>> [EMAIL PROTECTED] wrote:
>>> The problem I have is that since I import WMI, it takes a long time
>>> and we have users complaining about it. So I stuck the import
>>> statement into a separate thread and set it
On Feb 27, 3:32 pm, Tim Golden <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > The problem I have is that since I import WMI, it takes a long time
> > and we have users complaining about it. So I stuck the import
> > statement into a separate thread and set it to a daemon so it could do
>
[EMAIL PROTECTED] wrote:
> The problem I have is that since I import WMI, it takes a long time
> and we have users complaining about it. So I stuck the import
> statement into a separate thread and set it to a daemon so it could do
> its thing in the background and the rest of the script would fin
Hi,
I am trying to create a post logon script which does various tasks,
like setup a printer based on location. While most of it works very
fast, I have a second Python script that I run that scans the PC using
WMI (among other things) and writes the following to a database: Name,
Username, Machin