Thank you very much for your quick and precious help.

i have execute it, at first i was getting an error at line :

rundll32 printui.dll,PrintUIEntry /Xs /n "%OldPrinterString%" printername "%PrinterString%"

then i modify it to:

rundll32 printui.dll,PrintUIEntry /Xs /n "%OldPrinterString%" printername "testprinter"

then its work

what i would like to do is to rename the existing printer for example the printer is named: Client\pailles_dom-nns\\\hfdc01pl \laserjet 1320

i would like it to be only : laserjet 1320.

how can i modify the code so that only part of it change and the new rename printer be the default printer itself.


Thanks a lot
Nazeedah