Clear Stuck Print Spooler Jobs in Windows XP

When print jobs become corrupted in Windows XP, they often get stuck in the print queue and remain locked in system memory, preventing subsequent documents from printing. This guide details the essential procedures used to clear these unresponsive print tasks by stopping the Print Spooler service, purging the cached print files from the system directory, and restarting the service to restore normal printer operation.

Method 1: The Command Prompt Method

The fastest and most reliable way to clear locked spool files is using the Windows XP Command Prompt with administrative privileges.

  1. Click Start and select Run.
  2. Type cmd and press Enter to open the Command Prompt.
  3. Stop the spooler service by typing the following command and pressing Enter:
    net stop spooler
  4. Delete the cached spooler files by typing the following command and pressing Enter:
    del /Q /F /S "%systemroot%\system32\spool\printers\*.*"
  5. Restart the spooler service by typing the following command and pressing Enter:
    net start spooler
  6. Type exit and press Enter to close the Command Prompt.

Method 2: Manual Clearing via Windows Services and Explorer

If you prefer using the graphical user interface, you can manually stop the service and delete the files through Windows Explorer.

Step 1: Stop the Print Spooler Service

  1. Click Start, then click Run.
  2. Type services.msc and click OK.
  3. Scroll down the list to find Print Spooler.
  4. Right-click Print Spooler and select Stop. Keep the Services window open.

Step 2: Delete the Corrupted Print Files

  1. Click Start, then click Run.
  2. Type C:\WINDOWS\system32\spool\PRINTERS and click OK. (Adjust the drive letter if Windows XP is installed on a different partition).
  3. Select all files in this folder (these typically have .SPL and .SHD extensions).
  4. Press the Delete key and confirm by clicking Yes. Do not delete the PRINTERS folder itself, only the files inside it.

Step 3: Restart the Print Spooler Service

  1. Return to the Services window.
  2. Right-click Print Spooler and select Start.
  3. Close the Services window.

Method 3: Automated Batch File

For environments where print jobs frequently hung, technicians created an automated batch script.

  1. Click Start > All Programs > Accessories > Notepad.
  2. Paste the following lines into the text document:
    @echo off
    net stop spooler
    del /q /f "%systemroot%\system32\spool\printers\*.*"
    net start spooler
    echo Print queue cleared.
    pause
  3. Click File > Save As.
  4. In the Save as type dropdown, select All Files.
  5. Name the file ClearSpooler.bat and save it to the Desktop.
  6. Double-click the file whenever a print job becomes stuck to immediately purge the memory queue.