aimeeandbeatles
watermelon
- Joined
- Apr 5, 2007
- Messages
- 20,112
Once in a while, the queue for my PDF printer will get stuck. (Its the best one I've used so far, so I'll live with the issue.) Usually this is fixed by stopping and restarting the printer spooler. I do this from command line (net stop, net start...) as its much quicker and I thought perhaps if I made a batch file it would be quicker yet. But the batch file didn't do a thing.
It just consists of two lines:
I'm not too great at doing batch files and I assume I was supposed to put in something at the beginning. Can someone show me? Thanks. Its been a while since I last tried to do a batch file.
EDIT: I figured it out. It wasn't run as admin and it closed too quickly to see the error. I changed the batch file a bit to make sure I do see an error.
Anybody else who needs that can take it.
It just consists of two lines:
Code:
net stop spooler
net start spooler
I'm not too great at doing batch files and I assume I was supposed to put in something at the beginning. Can someone show me? Thanks. Its been a while since I last tried to do a batch file.
EDIT: I figured it out. It wasn't run as admin and it closed too quickly to see the error. I changed the batch file a bit to make sure I do see an error.
Code:
@ECHO OFF
net stop spooler
net start spooler
ECHO The printer spooler is now reset. Please have a nice day.
pause
exit
Anybody else who needs that can take it.