/build/static/layout/Breadcrumb_cap_w.png

Rename Printers in DOS

Does anybody know if it is possible to rename a printer using DOS?????

I have an application that will only work if the printer is a certain name, I am running an exe silently to install the printer but once installed the name needs to be changed for the app to function correctly.

I thaught it would be quite simple if I could change it with a DOS command or Batch file however this has proved to be a bit more difficult than I would have hoped...

0 Comments   [ + ] Show comments

Answers (4)

Posted by: brenthunter2005 19 years ago
Fifth Degree Brown Belt
2
Hello Fishy,

We does it have to be done within DOS?

Why not use WMI under Windows to change the name of the printer?
Posted by: Fishy 19 years ago
Senior Yellow Belt
0
Thanks Brent, Yea I used 'cscript prncnfg -x -p "printer name" -z "new printer name" command, this worked perfectly.
Posted by: WiseUser 19 years ago
Fourth Degree Brown Belt
0
Is it a local printer? Or a shared network printer?
Posted by: Fishy 19 years ago
Senior Yellow Belt
0
It is in fact a local virtual PDF converter printer!!

For some reason the application will not recognise it until the name has being changed. I have figured out that you can change it using the prncnfg.vbs that on the XP OS.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ