Can I reset a Windows printer from a batch file

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
c7c4c7Asked:
Who is Participating?
 
CyberLexConnect With a Mentor Commented:
oops, submitted to early :=) file attached
eject.txt
0
 
CyberLexCommented:
try sending this to your printer (file attache)

<escape>E  
ejects page

and

<escape>%-12345X
exits active printer language
0
 
c7c4c7Author Commented:
Is this a bat file?
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
EjayHireCommented:
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
 
CyberLexCommented:
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
 
CyberLexCommented:
ah didn't see the answer from Ejay - same same :)
0
 
c7c4c7Author Commented:
Worked as advertised
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.