On Feb 14, 9:47*am, "Tim Meddick" <timmedd...@o2.co.uk> wrote:
> Please ignore my previous post ;
>
> The more accurate way of handling printer (spooler) functions is by the XP
> built-in VBS scripts :
>
> prncnfg.vbs
> prndrvr.vbs
> prnjobs.vbs
> prnmngr.vbs
> prnport.vbs
> prnqctl.vbs
>
> ...which are located in your [system32] directory.
>
> The one's you want (to stop printing and clear the que) are :
> [prnjobs.vbs] and [prnqctl.vbs] and the syntax to place into a batch-file
> would be :
>
> ------------------- copy between lines -------------------
>
> @echo off
> echo Cancelling current print job...
> cscript prnjobs.vbs -x
> echo Cancelling all print jobs...
> cscript prnqctl.vbs -x
>
> ------------------- copy between lines -------------------
>
> For usage instructions (syntax) for each of the prn[func].vbs scripts
> included with XP, type the following at the command prompt ;
>
> cscript *prn[func].vbs */?
>
> ==
>
> Cheers, * *Tim Meddick, * *Peckham, London. * *:-)
>
> "Mint" <chocolatemint77...@yahoo.com> wrote in message
>
> news:e95ea7f8-5475-4733-af5c-(E-Mail Removed)...
>
> > Is there a *way to delete everything in the printer queue using maybe
> > a batch file?
> > This would save paper and time.
>
> > I am sometimes at a computer where others walk away from it and there
> > are items in the printer queue.
>
> > Then when I print something, I have to wait while other pages come
> > out.
>
> > Thanks,
> > * * * * * * *Andy
Ran into some problemos.
Andy
C:\DELL>canc_print_jobs
Cancelling current print job...
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.
Unable to set print job Error 0x8004100C Not supported
Operation GetObject
Provider CIMWin32
Description
Win32 error code
Cancelling all print jobs...
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.
CScript Error: Loading script "C:\Windows
\System32\Printing_Admin_Scripts\en-US\
c:\windows\system32\prnqctl.vbs" failed (The filename, directory name,
or volume
label syntax is incorrect. ).
@echo off
echo Cancelling current print job...
cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\prnjobs.vbs -
x
echo Cancelling all print jobs...
c:\cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\c:\windows
\system32\prnqctl.vbs -x
|