Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a wireless printer and for whatever reason, when I print it sends it to the printer queue but the printer itself just continues to zzZZzzz. Anyways, I have found that when I do RUN > services > Printer Spooler > Restart , the printer will then see and print whatever is in the printing queue.

I want to make a shortcut (or batch script) to do that ( RUN > services > Printer Spooler > Restart ). Is it possible, how?

alt text

share|improve this question

3 Answers 3

up vote 3 down vote accepted

Open up notepad and paste the following

@echo off

echo RESTARTING THE PRINT SPOOLER SERVICES

net stop "print spooler"

net start "print spooler"

echo FINISHED RESTARTING PRINT SPOOLER

(Feel free to delete the first two and the last line!)

Save this anywhere as a .cmd or .bat file* (basically, call it restart printer.cmd)

If you have UAC on, you will need to right click and do "Run as administrator", if you do not have UAC on, you can just run it.

It should restart the print spooler service.

If it does not work, make sure the extension of the file is just .bat or .cmd and not .bat.txt or .cmd.txt

(it's up to you, I would personally use .cmd, but it makes no difference)

share|improve this answer
    
the messages are kind of redundant as the window will instantly close afterwards :P –  John T Nov 23 '09 at 18:50
    
well, I agree on the last one... but it takes nothing and looks nice! –  William Hilsum Nov 23 '09 at 18:53

Use net start <service> and net stop <service> in a batch script:

net stop spooler
net start spooler

save as something like restart.bat on the desktop for easy access. Since it appears that you're using Vista/7, if UAC is enabled you'll need to right click the batch script and run as Administrator.

share|improve this answer

In your batch file run the following commands

net stop "Print Spooler"
net start "Print Spooler"
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.