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

2010-01-11 Thread Mike Driscoll
On 1:59 PM, Tim Golden wrote: 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

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] Question concerning wmi c.CIM_DataFile

2010-01-04 Thread Tim Roberts
Kelvin Lomboy Mendez wrote: I’m currently writing a script to access approximately 400 computers for removing a particular app from the system. I’m having problems getting results using the wmi c.CIM_DataFile (name=file). When I use file as a variable which equals to the path to the app I

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

2010-01-04 Thread Mike Driscoll
On 1:59 PM, Tim Roberts wrote: Kelvin Lomboy Mendez wrote: I'm currently writing a script to access approximately 400 computers for removing a particular app from the system. I'm having problems getting results using the wmi c.CIM_DataFile (name=file). When I use file as a variable which

[python-win32] Question concerning wmi c.CIM_DataFile

2010-01-03 Thread Kelvin Lomboy Mendez
I'm currently writing a script to access approximately 400 computers for removing a particular app from the system. I'm having problems getting results using the wmi c.CIM_DataFile (name=file). When I use file as a variable which equals to the path to the app I want to remove I don't get nothing

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

2010-01-03 Thread Paul Keating
Don't do this: #File to query string = C:\DOCUME~1\profileName\LOCALS~1\Temp\\Temporary Directory 1 for deluxetreee (2).zip\Christmas.exe #Substitute \ to \\ path = re.sub('', '', string) I can see nothing wrong with this particular bit of code, but sooner or later doing