Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 423
  • Last Modified:

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
0
c7c4c7
Asked:
c7c4c7
  • 4
  • 2
1 Solution
 
CyberLexCommented:
try sending this to your printer (file attache)

<escape>E  
ejects page

and

<escape>%-12345X
exits active printer language
0
 
CyberLexCommented:
oops, submitted to early :=) file attached
eject.txt
0
 
c7c4c7Author Commented:
Is this a bat file?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now