PC Review


Reply
Thread Tools Rate Thread

Clearing PRN

 
 
Jim Hawkins
Guest
Posts: n/a
 
      11th Apr 2008
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


 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      11th Apr 2008

"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


 
Reply With Quote
 
Jim Hawkins
Guest
Posts: n/a
 
      11th Apr 2008

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


Many thanks Pegasus !

Jim Hawkins




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clearing cells but also not clearing other dependent cells rtlars Microsoft Excel Programming 4 13th Mar 2010 04:46 AM
Clearing cells without clearing formulas marsjune68 Microsoft Excel Misc 2 10th Apr 2009 07:39 PM
Clearing A Row alex1982 Microsoft Excel Programming 2 18th Aug 2006 04:39 PM
CLEARING IN BOX =?Utf-8?B?V0FOREVSSU5HIEJMSU5ETFk=?= Microsoft Outlook 1 24th Jul 2004 01:25 AM
Re: Clearing OU's Herb Martin Microsoft Windows 2000 Active Directory 0 19th Aug 2003 06:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:08 PM.