Thursday, May 22, 2008

How to cancel printing or to delete a print job that is stuck in the print queue in Windows XP

Step 1: Start Notepad
To stop the print spooler and its files, we will have you create and run a script file that will automatically stop the service. This sounds difficult, but it really isn't. Just follow these steps carefully.
a. Click Start, and then click Run.
b. In the Open box, type notepad, and then click OK. Notice that a blank Notepad document opens.
Step 2: Copy a command script to Notepad
Now we will have you copy and paste some commands to the Notepad document.
a. Carefully select (highlight) all the following text:
net stop spooler
del %systemroot%\system32\spool\printers\*.shd
del %systemroot%\system32\spool\printers\*.spl
net start spooler
b. Right-click the text that you selected, and then click Copy.
c. In Notepad, right-click in the blank document, and then click Paste.
d. Carefully select (highlight) all the following text:
C:\DeletePrintJobs.cmd
e. Right-click the text that you selected, and then click Copy.
f. In Notepad, click Save As on the File menu.
g. In the File Name box, right-click, and then click Paste.
Note Notice that this file name differs from most other file names that you might have seen. That is because this file is a command script file.
h. Click Save.
Step 3: Run the command script file
Now that you have created the command script file, you will run it. To run it, you will copy and paste the name of the command script file in the Run box.
a. Carefully select (highlight) all the following text:
C:\DeletePrintJobs.cmd
b. Right-click the text that you selected, and then click Copy.
c. Click Start, and then click Run.
d. In the Open box, right-click, and then click Paste.
e. Click OK.
f. Notice that the Command Prompt window opens to run the command script file that you created. Notice also that this window closes automatically when the command script file has finished running. If you do not see the Command Prompt window open, check that you saved the command script file by using the correct name and that you entered the correct command script file name in the Run box. Note If this method does not work the first time, or if you cannot print anything after you use this method, restart your computer, and then try again.
If this method worked, you are finished with this article. However, you may want to read the "Prevention tips" section to prevent this problem from happening again.

PLEASE REFER TO MSKB:- http://support.microsoft.com/kb/946737

No comments: