Re: exec method WMI

2005-07-14 Thread future_retro
Got it working, removed spawninstance and the driver path should have been "C:\\test\\" Cheers for your help Roger. -- http://mail.python.org/mailman/listinfo/python-list

Re: exec method WMI

2005-07-13 Thread Roger Upole
You probably need to remove the SpawnInstance_() call. An abstract WMI class as returned by WBEM.Get should work for the DriverInfo parm, since the concrete Win32_PrinterDriver instance is what the AddPrinterDriver call is trying to create. hth Roger <[EMAIL PROTECTED]> wrote in messa

exec method WMI

2005-07-13 Thread future_retro
Hi, I'm trying to use the AddPrinterDriver method of Win32_PrinterDriver to create a new. print driver. I can't get my head round how I need to do this. So far I have import win32com.client WBEM = win32com.client.GetObject(r"winmgmts:{impersonationLevel=impersonate}!\\" + "." + r"\root\cimv2