Posts Tagged ‘batch files’

» Cancel pending printing jobs with a simple batch file

Friday, March 19th, 2010

This batch file will quickly cancel print queue so that you can now continue with printing more jobs.

Flush printing job queue (Batch file)

The content of the batch file is as follows

@echo off
echo Stopping print spooler.
echo.
net stop spooler
echo deleting stuff... where? I'm not sure. Just deleting stuff.
echo.
del %systemroot%\system32\spool\printers\*.shd
del %systemroot%\system32\spool\printers\*.spl
echo Starting print spooler.
echo.
net start spooler

Now whenever you need to instantly cancel print queue, just double click on the batch file and it will delete the pending jobs. A very good piece of advice by Pallav is to be careful while using this batch file in a work environment as if you are on a print server, it would cancel printing jobs of all connected printers.

Thanks to Pallab for bringing my attention and to Lifehacker for the code.

You can also make a custom command which you can type in Run (Win + R) to execute the batch file. Read Creating Custom Run Commands

--> Tags:
Posted in How To / Tutorials ¤ Tips n Tricks ¤ Uncategorized | 2 Comments »

» Batch Files – Repeat certain tasks with a click

Wednesday, March 19th, 2008 Tags: ¤ ¤ ¤ ¤ ¤
Posted in How To / Tutorials ¤ Software ¤ Tips n Tricks | 13 Comments »