Jump to content

Process toggler?


ODC

Recommended Posts


Here's an example I found, do with it as you will.

@echo off
FOR /F "tokens=1,2,3,4" %%A IN ('SC.EXE QUERY SPOOLER ^| FIND /I "STATE"') DO SET STATE=%%D
IF /I "%STATE%"=="RUNNING" (NET STOP SPOOLER) ELSE (NET START SPOOLER)

Link to comment
Share on other sites

Thank you very, very much, Yzöwl. That works perfectly for my needs.

@Jeremy, I have also disabled many of my services, but there a some that I need to run occationally and I wanted to have an shortcut that would easily enable or disable the service as I see fit.

Link to comment
Share on other sites

  • 4 months later...

My question is different but not entirely off the thread..

is there a tool to toggle the priority of a process without invoking the taskmanager?

what about permanently changing the process' priority from it's default?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...