Clearing PRN

J

Jim Hawkins

I'm trying to stop a very long print to a dotmatrix printer
on the parallel port.
The program doesn't make use of the Windows Printers
facility, it simply does a 'copy <myfile> to prn'
I've tried turning both the PC and the printer off, but
it has clearly not emptied the buffer, because when
I turn on again the print resumes!

How can I clear the print buffer ?

Jim Hawkins
 
P

Pegasus \(MVP\)

Jim Hawkins said:
I'm trying to stop a very long print to a dotmatrix printer
on the parallel port.
The program doesn't make use of the Windows Printers
facility, it simply does a 'copy <myfile> to prn'
I've tried turning both the PC and the printer off, but
it has clearly not emptied the buffer, because when
I turn on again the print resumes!

How can I clear the print buffer ?

Jim Hawkins

Yes, the program does make use of the Windows printing
facilities, if only because WinXP won't let it do it any other
way!

Copy the lines below into the file c:\Windows\Purge.bat,
then create a desktop shortcut to c:\Windows\Purge.bat. To
clear the print queue, do this:
1. Turn off the printer.
2. Double-click this shortcut.
3. Turn on the printer.
@echo off
echo.
echo Purging the print queue . . .
net stop Spooler
echo Deleting all print jobs . . .
ping localhost -n 4 > nul
del /q %SystemRoot%\system32\spool\printers\*.*
net start Spooler
echo Done!
ping localhost -n 4 > nul
 
J

Jim Hawkins

Pegasus (MVP) said:
Yes, the program does make use of the Windows printing
facilities, if only because WinXP won't let it do it any other
way!

Copy the lines below into the file c:\Windows\Purge.bat,
then create a desktop shortcut to c:\Windows\Purge.bat. To
clear the print queue, do this:
1. Turn off the printer.
2. Double-click this shortcut.
3. Turn on the printer.
@echo off
echo.
echo Purging the print queue . . .
net stop Spooler
echo Deleting all print jobs . . .
ping localhost -n 4 > nul
del /q %SystemRoot%\system32\spool\printers\*.*
net start Spooler
echo Done!
ping localhost -n 4 > nul

Many thanks Pegasus !

Jim Hawkins
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top