ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to force clearing of print buffer without restart. (https://www.excelbanter.com/excel-discussion-misc-queries/238525-how-force-clearing-print-buffer-without-restart.html)

Steve

How to force clearing of print buffer without restart.
 
Need to force the print buffer to clear all print jobs without restarting
computer. Problem occurs in Word and Excel.

Bill Sharpe

How to force clearing of print buffer without restart.
 
Steve wrote:
Need to force the print buffer to clear all print jobs without restarting
computer. Problem occurs in Word and Excel.


This batch file ought to do it:

@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

Bill


All times are GMT +1. The time now is 05:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com