Skip to content

Instantly share code, notes, and snippets.

@martinusso
Created October 3, 2011 11:20
Show Gist options
  • Save martinusso/1258913 to your computer and use it in GitHub Desktop.
Save martinusso/1258913 to your computer and use it in GitHub Desktop.
Cancel Printing from Microsoft Windows
@echo off
cls
echo All documents in print queue will be canceled! Please wait...
net stop spooler
echo .
echo Clearing the print queue...
del %windir%\system32\spool\printers\*.* /q /s
echo .
net start spooler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment