Download batch file to delete print queue windows 7






















If it works, it'll save a fair bit of time as we get this issue a lot. Edit: Come to think of it, since it seems to be certain users who have this problem, I could just leave this batch file on their desktop, for them to run if they have an issue printing and allow them to fix it themselves.

I know these users can be trusted with doing this and will greatly appreciate not having to call for help. Clearing print cache using a batch file. Best Practices General Windows. Last Updated: Jan 17, 2 Minute Read. You will need to delete those files manually every day and this is not good practice. On the other hand, you can create a script to delete the file automatically.

All of that without installing any third-party software. In fact, this example will show steps for creating a batch file and you can use Task Scheduler to run. In fact, Batch files are scripts that can run to perform tasks on your system. Click the Start Orb. Save www. Right click or press and hold on the www. You will now see a command prompt open for a few seconds, run the. Now, if the print spooler fails then it will restart the spooler and purge the spool folder.

Be aware that the first purgeprint. I have something similar that clears them both, but if someone has a couple hundred page documents they are printing, I wouldn't want to interrupt that but instead clear the one that isn't working. You could then leverage the script to detect and remove any bad jobs via Remove-PrintJob. If you wanted to get fancy, your script could also collect the username and notify them it failed.

The issue with this is you have to have Windows 8 or above. Windows 7 does not work with the Printmamagenet Module At least I can't get it to work. A question that I have for this, is with purgeprint.

My solution did both of these while his only deleted all print jobs in the spooler. Unless having this as a bat file was a specific requirement. I've tried just stopping and starting the spooler, but have never had success in getting stuck jobs to spool.



0コメント

  • 1000 / 1000