Re: Print Queue Logging




"Mark" <Mark@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:F3F79A27-B5FA-4C57-B92F-77CEC3E66D9B@xxxxxxxxxxxxxxxx
Hi

I would like to know if it's possible to write a script or a small program that takes all the info displayed in a print queue and puts them in a txt file.


I was thinking to write this in VBS but i'm not sure if we can.

Can anyone suggest in what language can this be written ?

Thanks




You should be able to use WMI using the Win32_Printjob class.
Keep in mind, if there are no print jobs in the Queue, there will
be no instances of Win32_Printjob so you need to take that into
account when you write your script.

TDM
.



Relevant Pages

  • SUMMARY: Print to 2 queues at once
    ... Is there a way to set up a print queue in Unix so that it prints to 2 ... When we configure our printers and queues, ... I would set up a wrapper script to take the same command line arguments as ... # Only errors are logged as the lpd will log successful printing ...
    (Tru64-UNIX-Managers)
  • Re: To drag a file as parameter to script
    ... any clicking of options or whatever when you drag the file to your ... those .prn files by copying them to printers. ... develop a script with the copy command inside and let users drag and ... I want to development a script to print files to a print queue. ...
    (microsoft.public.scripting.wsh)
  • Re: duplicate bos.printer.rte
    ... Did you reinitialize your smit screens? ... to build a script to create those queues. ... Subject: duplicate bos.printer.rte ... Here's what I see when creating a new hp_jetdriect print queue: ...
    (AIX-L)
  • Re: Move print queues to new server
    ... The print queue have been migrated to a new server. ... retain their existing default print queue and how it can be done by script. ... Create a new group policy object with user logon script for deploying ...
    (microsoft.public.windows.server.migration)
  • Re: Mac printing to Windows Printer -- need help please.
    ... I've had no luck with watching the print queue with WatchPaths. ... technique I posted before using what I've learned about launchd. ... The change here is using launchd's StartInterval, and having the script ...
    (comp.sys.mac.comm)

Loading