jihuichoi

force to remove documents from spooler

Mar 10th, 2017
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. @echo off
  2.  
  3. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  4. echo Stopp printer spooler service
  5. net stop spooler
  6. echo[
  7.  
  8. echo Deleting document files in spooler directory
  9. cd C:\Windows\System32\spool\PRINTERS
  10. del /f /Q *.*
  11. echo[
  12.  
  13. echo Start printer spooler service
  14. net start spooler
  15. echo[
  16.  
  17. echo All done. thx!
  18. timeout 2 > NUL
Advertisement
Add Comment
Please, Sign In to add comment