Skip navigation

How can I set the default printer from the command prompt?

A. A. A new utility has been written called DEFPRINT.EXE which allows the default printer to be set from the command prompt.

A couple of examples...

D:\&gt;defprint /p<br>
Found 2 printers

PrinterName: \\EDUC-HQ\Comm Ed (North)<br>
ServerName: \\EDUC-HQ<br>
PortName: edu-ce-hp5-2<br>
DriverName: HP LaserJet 5<br>
PrintProcessor: winprint<br>
ShareName: commed-2

PrinterName: \\EDUC-HQ\Comm Ed (South)<br>
ServerName: \\EDUC-HQ<br>
PortName: EDU_COMMED_HP5M<br>
DriverName: HP LaserJet 5<br>
PrintProcessor: winprint<br>
ShareName: commed-1

D:\>defprint /d commed-1
Would set the default printer to commed-1

Equally,

D:\>defprint /d edu_commed_hp5m
would do the same job

D:\>defprint /d lpt1
Would set the default printer to be the local printer (only if it existed)


Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish