![]() ![]() ![]() The del command deletes files or directories. In the first line, you use this command with the "stop" parameter to stop the Print Spooler. The net use command with parameters is used to connect and configure connections to shared resources, including printers. Open Notepad or any other text editor you prefer. In a new file, enter the code below: net stop spoolerĭel /F /S /Q "%windir%\System32\spool\PRINTERS\*.*" The batch file is going to include the three lines we used in the Command prompt windows so that once you run it, it'll run all three commands and clean up the Print Spooler. You can read our article on creating a simple batch file to make your first batch file. If your print jobs have a tendency to get stuck or if you just want to save time for the next time they might get stuck, you can write a batch file to clear the Print Spooler with a click. Writing a Batch File to Stop and Clear the Print Spooler That's it! You're Printer Spooler is nice and fresh now! You can go on ahead and queue prints again. In Command Prompt, enter the code below and press enter: net start spooler.You can also skip this step and remove the files manually from Windows Explorer. Enter the code below and press enter: del /F /S /Q "%windir%\System32\spool\PRINTERS\*.*" You should get a response from Command Prompt saying that some files were removed. Delete the print job files from the print spooler directory. ![]() In Command Prompt, type the following line and then press enter to stop the spooler service: net stop spooler Once you enter this code, you'll get a response saying, "The Print Spooler service is stopping." and another one saying, "The Print Spooler service was stopped successfully." shortly after the first one. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |