Results 1 to 5 of 5

Thread: Batch help

  1. - Top - End - #1
    Orc in the Playground
     
    SwashbucklerGuy

    Join Date
    Aug 2011

    Default Batch help

    Anyone any good at basic batch files? My printer cue keeps jamming up and manually clearing it is a hassle, so I wanna make a batch file to:

    1. Stop the print spooler service
    2. Kill the print pipeline process
    3. Delete everything in the print cue (just delete everything in that folder)
    4. restart the print spooler service
    Quote Originally Posted by crayzz
    That a given person is known for his sex appeal does not mean that he is only known for his sex appeal.
    Quote Originally Posted by jere7my
    For instance, I am also known for my humility.

  2. - Top - End - #2
    Orc in the Playground
     
    OldWizardGuy

    Join Date
    Nov 2010
    Location
    California
    Gender
    Male

    Default Re: Batch help

    Might want to mention what OS you are on? Windows? Linux?

  3. - Top - End - #3
    Orc in the Playground
     
    SwashbucklerGuy

    Join Date
    Aug 2011

    Default Re: Batch help

    Sorry, I thought batch was a windows only thing (wouldn't the linux equivalent be bash?).

    Im using Windows 10.
    Quote Originally Posted by crayzz
    That a given person is known for his sex appeal does not mean that he is only known for his sex appeal.
    Quote Originally Posted by jere7my
    For instance, I am also known for my humility.

  4. - Top - End - #4
    Orc in the Playground
     
    BardGuy

    Join Date
    Oct 2011
    Gender
    Male

    Default Re: Batch help

    Not an expert at batch files but I think this will work.

    Spoiler: Printer Stop Batch
    Show
    @ECHO OFF
    net stop spooler
    ECHO.
    taskkill /F /IM printfilterpipelinesvc.exe
    ECHO.
    del %systemroot%\System32\spool\printers\* /Q
    ECHO Print queue folder cleared.
    ECHO.
    net start spooler
    ECHO.
    ECHO Press Enter to exit.
    set /p exit=

    Exit

  5. - Top - End - #5
    Orc in the Playground
     
    SwashbucklerGuy

    Join Date
    Aug 2011

    Default Re: Batch help

    Quote Originally Posted by VexingFool View Post
    Not an expert at batch files but I think this will work.

    Spoiler: Printer Stop Batch
    Show
    @ECHO OFF
    net stop spooler
    ECHO.
    taskkill /F /IM printfilterpipelinesvc.exe
    ECHO.
    del %systemroot%\System32\spool\printers\* /Q
    ECHO Print queue folder cleared.
    ECHO.
    net start spooler
    ECHO.
    ECHO Press Enter to exit.
    set /p exit=

    Exit
    That worked perfectly, thank you!
    Quote Originally Posted by crayzz
    That a given person is known for his sex appeal does not mean that he is only known for his sex appeal.
    Quote Originally Posted by jere7my
    For instance, I am also known for my humility.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •