[python-win32] Backing up and clearing event logs

2007-07-20 Thread Mårten Hedman
Hello, I am trying to write a script for backing up and clearing event logs on our Windows 2003 servers, using Python 2.5 and Tim Golden's WMI module. While testing with the Application log on a local Windows XP machine I seem to get stuck on the parameters to WMI. The following code: import

Re: [python-win32] Backing up and clearing event logs

2007-07-20 Thread Tim Golden
Mårten Hedman wrote: Hello, I am trying to write a script for backing up and clearing event logs on our Windows 2003 servers, using Python 2.5 and Tim Golden's WMI module. While testing with the Application log on a local Windows XP machine I seem to get stuck on the parameters to WMI.

[python-win32] Python Flagged as a Virus by AVG

2007-07-20 Thread James Matthews
I was reading a Microsoft news group and came across this post Got this during a scan of my computer: infected: object C:\hp\bin\python-2.2.3.exe:\comparisons.html result: trojan horse PHP/MPack.B status: infected embedded object inefected: object C:\hp\bin\python-2.2.3.exe What can/should

[python-win32] Inserting method into COM object dictionary

2007-07-20 Thread Richard Bell
The following code creates an IE browser, navigates to Google, and then clicks on the 'News' link. - code - ie = win32com.client.DispatchEx('InternetExplorer.Application') ie.Visible = 1 ie.Navigate('www.google.com') time.sleep(10) # show a '.' access fairly deep into the page's DOM (to