Διάφορα περί Η/Υ και λοιπά γκάτζετ
Δημοσιεύτηκε: 04 Φεβ 2015, 15:11
Τὸ ἔκλεψα ἀπὸ τὸ διαδίκτυο.
In a nutshell, Shikyo explains that Windows is unable to cancel print jobs while the temporary file created for the print job is still being used by Windows. The solution: You've got to stop the spoolsv.exe service in the Windows Task Manager, delete any outstanding print jobs in the C:\Windows\system32\spool\printers\ directory, restart the spoolsv.exe service, and then start printing again. That's a lot of work to do manually, particularly if this is a problem you run into regularly, but luckily the generous Reddit user has also detailed a batch file that'll do the heavy lifting for you:
Here is the script for a batch file; just copy this to a new text document and save as "clearprintspool.bat"
@echo off
echo Stopping print spooler.
echo.
net stop spooler
echo deleting stuff... where? I'm not sure. Just deleting stuff.
echo.
del "%systemroot%\system32\spool\printers\*.shd"
del "%systemroot%\system32\spool\printers\*.spl"
echo Starting print spooler.
echo.
net start spooler