{"id":2275,"date":"2014-06-17T21:05:49","date_gmt":"2014-06-17T18:05:49","guid":{"rendered":"http:\/\/9v.lt\/blog\/?p=2275"},"modified":"2022-01-19T08:34:39","modified_gmt":"2022-01-19T06:34:39","slug":"canceling-print-jobs-get-stuck","status":"publish","type":"post","link":"https:\/\/9v.lt\/blog\/canceling-print-jobs-get-stuck\/","title":{"rendered":"Canceling all print jobs when they get stuck"},"content":{"rendered":"<p>On Windows I often get to deal with issues like printers not doing their job and I have to come over just to find a print job stuck. Normally in this situation it just won&#8217;t cancel or delete and it&#8217;s hopeless to do anything.<br \/>\nTo save me my valuable time I found this script, what it does is stops the print spool service and deletes all print job files, then starts it again.<br \/>\nYeah Windows saves print jobs in files in &#8220;%systemroot%\\system32\\spool\\printers&#8221;, so deleting everything in there does the job.<\/p>\n<p>Here&#8217;s the script:<\/p>\n<pre lang=\"batch\">\r\n@echo off\r\nnet stop spooler\r\ndel %systemroot%\\system32\\spool\\printers\\*.shd\r\ndel %systemroot%\\system32\\spool\\printers\\*.spl\r\nREM del %systemroot%\\system32\\spool\\printers\\*.*\r\nnet start spooler\r\npause\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>On Windows I often get to deal with issues like printers not doing their job<\/p>\n","protected":false},"author":2,"featured_media":2277,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,750],"tags":[904,906,905,907],"class_list":["post-2275","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-projects","category-software-projects","tag-batch","tag-print","tag-print-job","tag-spool"],"_links":{"self":[{"href":"https:\/\/9v.lt\/blog\/wp-json\/wp\/v2\/posts\/2275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/9v.lt\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/9v.lt\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/9v.lt\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/9v.lt\/blog\/wp-json\/wp\/v2\/comments?post=2275"}],"version-history":[{"count":0,"href":"https:\/\/9v.lt\/blog\/wp-json\/wp\/v2\/posts\/2275\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/9v.lt\/blog\/wp-json\/wp\/v2\/media\/2277"}],"wp:attachment":[{"href":"https:\/\/9v.lt\/blog\/wp-json\/wp\/v2\/media?parent=2275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/9v.lt\/blog\/wp-json\/wp\/v2\/categories?post=2275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/9v.lt\/blog\/wp-json\/wp\/v2\/tags?post=2275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}