Solved

Can I reset a Windows printer from a batch file

Posted on 2009-05-19
7
414 Views
Last Modified: 2013-12-15
I have an HP printer that thinks that it is constantly busy after I send it a print job from a DOS program.  I would like to be able to send a reset to the printer but have no idea how to do that.

Don't get hung up on the fact that the DOS program needs to get fixed, I don't have the source and cannot get it.

The printer is an HP Laserjet 3015
0
Comment
Question by:c7c4c7
  • 4
  • 2
7 Comments
 
LVL 9

Expert Comment

by:CyberLex
ID: 24424604
try sending this to your printer (file attache)

<escape>E  
ejects page

and

<escape>%-12345X
exits active printer language
0
 
LVL 9

Accepted Solution

by:
CyberLex earned 500 total points
ID: 24424614
oops, submitted to early :=) file attached
eject.txt
0
 

Author Comment

by:c7c4c7
ID: 24425214
Is this a bat file?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 2

Expert Comment

by:EjayHire
ID: 24425774
No.  It's a text file.  If your DOS application is using LPT1 you can use the copy command to send it to the printer.  The command is...

c:> copy eject.txt LPT1
0
 
LVL 9

Expert Comment

by:CyberLex
ID: 24425844
no bat file. it's a pjl file to send to the printer. either copy from dos if its parallel (eg. copy /b eject.txt lpt1)

or you can use a free utility to send it to your printer from euroform
http://ftp.euroform.com/download/software/PrintUtil/zip/PrintUtil_04.zip


cheers
Lex


0
 
LVL 9

Expert Comment

by:CyberLex
ID: 24425864
ah didn't see the answer from Ejay - same same :)
0
 

Author Closing Comment

by:c7c4c7
ID: 31583120
Worked as advertised
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now