Hello
Thx a lot for the help.
I have try the above code but the printer name haven't changed.
I have two printers. I have copy the code same as it is nad make it a batch file and execute it.
i have to change the printer whose name start with client e.g :Client\pailles_dom-nns#\\\HWFDC01PL\hp LaserJet 1320 PCL 5e and rename it to last part only i.e hp LaserJet 1320 PCL 5e.