1.

Solve : How to modify the default printer in a Batch ????

Answer»

Hi everybody !

I hope SOMEONE can tell me how to set the default PRINTER in a dos batch ?
I want to CALL my batch program with the printer name as a parameter.

The batch have to set the windows default printer.

Thanks in advance !Generally this is DONE with a script or manually thru the GUI, but batch is what you want, and batch you SHALL get:

rundll32 printui.dll,PrintUIEntry /y /n "printer"

The above line is case sensitive. Replace the word printer with the printer name or a command line parameter.

Hope this helps.



Discussion

No Comment Found