Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
September 6, 1999
A. A. A new utility has been written called DEFPRINT.EXEwhich allows the default printer to be set from the command prompt.
A couple of examples...
D:>defprint /p
Found 2 printers
PrinterName: \EDUC-HQComm Ed (North)
ServerName: \EDUC-HQ
PortName: edu-ce-hp5-2
DriverName: HP LaserJet 5
PrintProcessor: winprint
ShareName: commed-2
PrinterName: \EDUC-HQComm Ed (South)
ServerName: \EDUC-HQ
PortName: EDU_COMMED_HP5M
DriverName: HP LaserJet 5
PrintProcessor: winprint
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)
You May Also Like