Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^4: clear print queue in windows

by Sinistral (Prior)
on Feb 27, 2013 at 16:36 UTC ( #1020922=note: print w/ replies, xml ) Need Help??


in reply to Re^3: clear print queue in windows
in thread clear print queue in windows

This seems to be a non-trivial problem, but maybe some of the more Win32 minded Monks can help, using the following resources as some inspiration:

  1. Re: Printing in NT
  2. List of resources of VB programmers wanting to control print jobs
  3. Stack Overflow question about controlling printing in Windows using Perl

It seems like using Win32::API in conjunction with the winspool.drv DLL and calling SetJob with a null job will do the trick, but I can't give you the exact code that would accomplish this


Comment on Re^4: clear print queue in windows

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1020922]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2014-09-23 05:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls