"Jim Hawkins" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
|