![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Windows & DOS: Issues & Discussions All Windows and DOS questions should go here as well. Discuss UNIX to Windows (Desktop or Server) here! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| inconsistent ls command display at the command prompt & running as a cron job | rajranibl | SuSE | 5 | 07-30-2007 08:26 AM |
| display full unix path as part of the command line | ocelot | UNIX for Dummies Questions & Answers | 3 | 10-10-2006 02:58 PM |
| Display a particular line from a file | Rohini Vijay | Shell Programming and Scripting | 5 | 07-31-2006 07:27 AM |
| Finding printers from a command prompt | gseyforth | Windows & DOS: Issues & Discussions | 1 | 03-28-2006 08:24 AM |
| how to concatenate two command in one line and get the display in one screen | vasikaran | UNIX for Dummies Questions & Answers | 9 | 07-01-2005 05:41 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Display Printers via command line
Is there an easy way to view all printers on a local
machine via command line or a script? I'm looking for the equivalent of clicking on "START, CONTROL PANEL, PRINTERS AND FAXES" to view the devices. I then want to cat it to a file where I would use it later. Thanks |
|
|||||
|
What you mean by printer name? Above command is already giving you printer names only. I ran above batch and got following ouput:
Code:
---------- TMP Driver name HP OfficeJet G95,3,Windows NT x86 Driver name HP OfficeJet G85,3,Windows NT x86 Driver name hp LaserJet 1160 PCL 5e,3,Windows NT x86 Driver name hp deskjet 940c,3,Windows NT x86 Driver name Hewlett-Packard HP-GL/2 Plotter,3,Windows NT x86 Driver name Epson LQ-680 ESC/P 2,3,Windows NT x86 Pls explain exactly what you want. Regards, Tayyab |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|