I am only using a snipit from this script. I have modified the script, as it was installing ALL printers from the [PRINTER_MAP].
One printer does not want to be moved.
Here is the script. -------- $pmap="\mitt_printers2.ini" For Each $key In Split(ReadProfileString($pmap,"PRINTER_MAP",""),Chr(10)) If PriMapState($key) $nulp=AddPrinterConnection(ReadProfileString($pmap,"PRINTER_MAP",$key)) If PriMapState($key)=2 $nulp=SetDefaultPrinter(ReadProfileString($pmap,"PRINTER_MAP",$key)) EndIf $nulp=DelPrinterConnection($key) EndIf Next ------------------------------
This is my mitt_printers2.ini file
[PRINTER_MAP] \\kcmakiki\MITTiR3035=\\TRPRINT\MITTRMIIR3035
--- Thanks
Edited by SnoopDuJour (2008-04-22 08:47 PM)
|