03-31-2006 11:02 AM
Kind regards,
Roy LCosta
Roy L. Costa
E & I Technician
Michigan Waste Energy, Inc.
5700 Russell
Detroit, Michigan 48211
Tel (313) 972-5700 X285
Tel (313) 972-4635
Fax (313) 871-2835
Email: RCosta@covantaenergy.com
03-31-2006 01:36 PM
You could try a .vbs script or maybe use .Net and WMI.
cscript prnqctl.vbs-x [-sRemoteComputer] -pPrinterName [-uUserName-wPassword]
-x | Required. Specifies that you want to cancel all jobs spooled to a printer. |
-sRemoteComputer | Specifies, by name, the remote computer to which the printer for which you want to cancel all jobs is attached. If you do not specify a computer, the local computer is used. |
-pPrinterName | Required. Specifies, by name, the printer for which you want to cancel all print jobs. |
-uUserName-wPassword | Specifies an account with permissions to connect by using Windows Management Instrumentation (WMI) services to the computer on which you want to cancel all print jobs. All members of the Administrators group for that computer have these permissions, but the permissions can also be granted to other users. If you do not specify an account, you must be logged on under an account with these permissions for the command to work. For more information about WMI, see Related Topics. |
/? | Displays help at the command prompt. |
• |
This command starts a script that is located in the systemroot\system32 directory. You must type this command at a command prompt with that directory as the current directory, or you must type the full path to that directory at the beginning of the cscript command. |
• |
If the information that you supply contains spaces, use quotation marks around the text (for example, "Computer Name"). |
04-03-2006 10:12 AM
Excellent suggestion, unclebump!
In case you aren't already familiar with it, Roy, LabVIEW has a VI called System Exec.vi that allows you to run windows command-line calls programmatically. This would be a great way to implement the suggestion unclebump just gave. You can find it in your Functions palette in the Communication folder.
Let us know if you'd like more assistance!