Question

Locked

I need a Batch Command to Refresh XP Printer Spooler

By byte2hard ·
My Print Spool Stops - Problem creating a batch file to fix it. Windows XP pro computer intermittently stops printing to a HP 4si. I'm pretty sure it has something to do with the print driver, but haven't resolved it yet. My work around is a batch file that has the commands:

Net stop spooler
Net start spooler

After I run the batch file, I have to go to Printer Spool Icon in the System Tray and right click to bring up the command Refresh. I would like to know how to place this Refresh command into my batch file. Windows doesn't seem to auto refresh after the Net Start Spooler command, I've waited 10 min.
Thanks

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Never having had the problem, don't know if this will do the trick, but ...

by deepsand In reply to I need a Batch Command to ...

try issuing the appropriate NET USE command for the printer after the NET START SPOOLER command.

PS. This type of query properly belongs in the Question Forum, rather than the Discussions. You can post to said forum by clicking on "Ask a Question."

Collapse -

clear spooler files

by radu.tizu In reply to I need a Batch Command to ...

before starting the spooler you should delete files from C:\WINDOWS\system32\spool\PRINTERS
so your script will be :

net stop spooler
del %SYSTEMROOT%\system32\spool\PRINTERS\*.* /q /s
net start spooler

/Q - for no prompt
/F - to force the deletion

Back to Peripheral Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums