Question Locked

Printer batch file

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I would like to place a batch file on a couple of networked machines enabling the people in my company to automatically clear all documents in a printer quene. Whenever a document errors out and backs up subsequent print jobs these people have no idea how to clear the jobs. They just move on to another machine.

A simple batch file with an icon on the desktop would work wonders!

Pentiun 4
Windows 2000
HP 2100tn laser printer

5 replies

by paul.cook

From "Hey, Scripting Guy" on MS Technet

Set objPrinter = GetObject("WinNT://PrintServer/Printer")
objPrinter.Purge

That's two lines, starting with Set and objPrinter. Sorry wasn't sure how this would format.

Now with this everyone is going to have to reprint their jobs.

by sakuhara

you must teach them how to click the icon in the system tray and delete the jobs. otherwise you will need to teach them to click a bat file....which will get deleted in the next hour since the end users traditionally forget what the icon on the desktop is for and are now scared to click it. you must teach them to use what is built in

by rj

They need to purge all print jobs directly from the spooler. There are times when a simple cancel or delete from the printer properties dialog, which you are talking about, does not work. In cases where this does not respond you have to go to a system level, which is what this guy needs from the batch file. Not to mention the batch file, if I understand correctly, would be on the printer server, not the users computer...

This discussion is closed to new replies.