![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Windows & DOS: Issues & Discussions Questions involving Unix to Windows (Desktop or Server) go here. Any Windows/DOS questions should go here as well. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| inconsistent ls command display at the command prompt & running as a cron job | rajranibl | Linux | 5 | 07-30-2007 05:26 AM |
| display full unix path as part of the command line | ocelot | UNIX for Dummies Questions & Answers | 3 | 10-10-2006 11:58 AM |
| Display a particular line from a file | Rohini Vijay | Shell Programming and Scripting | 5 | 07-31-2006 04:27 AM |
| Finding printers from a command prompt | gseyforth | Windows & DOS: Issues & Discussions | 1 | 03-28-2006 05: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 02:41 AM |
|
|
Submit Tools | LinkBack | Thread Tools | 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 |
| Forum Sponsor | ||
|
|
|
||||
|
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 |
||||
| Google The UNIX and Linux Forums |