WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Printing Information

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to clear a printer queue


Reference: http://www.microsoft.com/technet/prodtechnol/winxppro/proddocs/prnqctl.asp?frame=true

;Clear a printer queue. 
;To cancel all jobs spooled to a printer
AddExtender("WWPRT34i.DLL")
defprt = pGetDefPrtInf(1)
DirChange(DirWindows(1))
Run('cscript',StrCat('"prnqctl.vbs" -x -p "',defprt,'"'))
Message("Finished","Canceling all jobs spooled to a printer")

Article ID:   W16167
File Created: 2004:03:30:15:43:02
Last Updated: 2004:03:30:15:43:02