Link to home
Start Free TrialLog in
Avatar of c7c4c7
c7c4c7Flag for United States of America

asked on

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
Avatar of CyberLex
CyberLex
Flag of Switzerland image

try sending this to your printer (file attache)

<escape>E  
ejects page

and

<escape>%-12345X
exits active printer language
ASKER CERTIFIED SOLUTION
Avatar of CyberLex
CyberLex
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of c7c4c7

ASKER

Is this a bat file?
Avatar of EjayHire
EjayHire

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
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


ah didn't see the answer from Ejay - same same :)
Avatar of c7c4c7

ASKER

Worked as advertised