Hi All,
I have been looking at the DelPrinterConnection() but it looks like it will not remove the local printers.

I can get rid of the network ones - thats great but ideally need a scipt that will work with local printers as well.

I know that this command works:
 Code:
if printerexist("OKI B4350 (Test Printer1)")
  run '%COMSPEC% /C START rundll32 printui.dll,PrintUIEntry /dl  /n "OKI B4350 (Test Printer1)"
endif

but would like to keep all the kix scripts kixy not having to call cmd commands in the middle of scripts.

Also if I use the above code I get windows shouting at me saying that it is not installed or has been removed.

Thanks


Edited by rhunton (2007-12-11 04:52 PM)