How to clear the print spooler in windows xp

I was asked to hook up a printer, and I can’t seem to get it to print a test page, it’s a HP OfficeJet 5510v.

When i print a test page it just sits in the windows print spooler.

I stopped the Print spooler by going to the command prompt (Click Start > Run > type: “cmd” without the quotes) and typed “NET STOP SPOOLER”

Then go to C:\WINDOWS\System32\spool\PRINTERS and delete the files

then restart the print spooler by typing “NET START SPOOLER” at the command prompt

That didn’t work either…

So I got mad, and tried to just delete the printer, and windows gives me this message: “Printer cannot be removed. Either the printer name was typed incorrectly, or the specified printer has lost it’s connection to the server. For more information, Click Help.”

I clicked “OK” and i remembered i removed the port, because this printer was set to be on an LPT1 port, but it was USB… i’m now getting confused…

I went into the properties of the printer and tried to associate it with LPT1 again, but when I went back to the properties i got the same message.

I ran the “Add Printer” Wizard in Windows, and it found the hp officejet 5500 series printer…

I knew the printer had been working before so I didn’t think drivers would be an issue, but the fact the the old printer is still in there bothers me…

Now that the printer is added, I checked it’s properties and everything is fine… now testing the print test page.

IT WORKED!!!! fantastic!

I’m not going to worry about that printer in there, because it’s my dad’s pc and i’m not getting paid for this…

but otherwise i would think that printer in there might eventually cause issues.

11 comments on this post.
  1. Printer Leasing:

    Always the same question, to fix or new?
    we have to think it right.

  2. bgme:

    Nice info on clearing the print spooler

  3. rashbre:

    thanks – worked well

  4. montie:

    This still works on Windows 7 BTW. Thanks.

  5. stop print spooling:

    Open the notepad and copy and paste below command:

    net stop spooler
    del %systemroot%\system32\spool\printers\*.shd
    del %systemroot%\system32\spool\printers\*.spl
    del %systemroot%\system32\spool\*.spl
    del %systemroot%\system32\spool\*.shd
    net start spooler

    Now save it as DeletePrintJobs.cmd in the desktop or anyother location and whenever you want to cancel the print operation just double click on the file now you can see the commands executing in command prompt and it exits after automatically deleting the print queues

    1. now right click the print job in the printing process folder and click cancel.

    2. now run DeletePrintJobs.cmd

    3. then right click the print job in the printing process folder and click cancel.

    BOOM!!! it’s gone!!

  6. gr1msheeper:

    That batch file worked a treat…

    Saved me some work there, thanks!

  7. tyshcka:

    Thank you! It works.

  8. Can't delete Lexmark printer program, even using Add/Remove - PCs, laptops, hardware, software - City-Data Forum:

    […] How to clear the print spooler in windows xp | Axelology […]

  9. Dragnarok:

    Good Stuff,

    Thanks !

  10. VIGNESH:


  11. albear:

    That batch file is fantastic!!!!

Leave a comment