9 replies
by ntoz
Technicaly you can do what your trying, but you would first have to issue a net stop command for the spooler service. A command like:
Net Stop "Print Spooler"
then your clean up routeen
Then
Net Start "Print Spooler"
By stopping the print spooler, you allow the deletion of the files in the directory your speeking of. Your scrpit would have to also be running under administrative contect in order to start and stop the service, or an account with proper credientials as the least. I hope this helped, email me if you need some more help.
Pete
Pete
by teaton
by ntoz
You do say in your question though, "have tried to use the delete command to clean out c:\winnt\system32\spool and ....spool\printers folders but that did not work" Another thing you have to keep in mind is the data that has already been sent from the print spooler and saved in RAM on the printer is going to keep printing until the RAM buffer is exausted. There are no NT commands to clear that out. In other words, if I have a 2 megabyte print job and a 10 megabyte buffer on the printer, no matter how you try to clear out the 2 megabyte print job, once its been transmited or partial transmittal, the printer is going to print what ever it has in its buffer. The suggestion I gave previously is about the limit you can do from an NT perspective. If you happen to have an HP or DeskJet type print card, it can be managed from HP Jetdirect software and perhaps that might give you some leverage from its standpoint. But the answer as far as NT is concerned, if the jobs been partialy sent or in total, its going to keep printing even if the spooler says the job is deleted or deleting. I understand you dont want to give them too much access but by default the print owner only has control over his/her jobs, they can stop thier own jobs and control them but cannot change printer function or others jobs.
Why not charge for documents printed over a certain amount, or at least threaten them with it. Also Win
by teaton
by ntoz
Thank you tom for your note via TechRepublic peer directory. If I can do anything to help you out in the future, let me know! This should allow you to rate this follow up and then close the question. Thanks again!
Pete
by teaton
by teaton
by teaton
by teaton
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending