|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
WMI - Cancel a print job
How can i cancel a print job based on the job id. Win32_Printer purge cancels all the print jobs in the queue. Is there a way to do a cancel based on job id?
Thanks in advance. |
|
#2
|
||||
|
||||
|
have a look here
__________________
Come JOIN the party!!! Quote of the Month: Retirement: Because you've given so much of yourself to the company that you don't have anything left we can use. Questions to Ponder: What do you do when you see an endangered animal eating an endangered plant? iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm") copyright© 2008 sbenj69 |
|
#3
|
||||
|
||||
|
You can use the file found in mehere's post above. Just use the Run or Exec method and provide the proper command line. The script referenced in that article is found in the System32 folder on every Windows system.
__________________
Click the image if at any point you don't like my decision.Scripting problems? Windows questions? Ask the Windows Guru! |
|
#4
|
|||
|
|||
|
Thanks a lot guys. Was able to invoke it.
Apart from this, printJob.Delete_() will cancel the print job. This is wat is done in prnjobs.vbs Last edited by scriptfreak : May 21st, 2008 at 05:27 AM. Reason: Alternate Solution |
|
#5
|
|||
|
|||
|
Quote:
Does printJob.Delete_() work in Windows Vista Further, the prnjobs.vbs is also not present in Vista system . |
![]() |
| Viewing: ASP Free Forums > System Administration > Windows Scripting > WMI - Cancel a print job |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|