Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Want to write a CMD to stop a specific service.

Status
Not open for further replies.

Lreader

Technical User
Jul 27, 2000
13
CA
I have to stop automatically a service. I want to use scheduled task combined with a CMD but I don't know how to write it. For example, I want to stop this service:
"FileMaker Server".
 
I know you could probably write a batch program..

edit stopservice.bat

(in the bat)
net stop "whatever service"


Now use AT schedule to schedule when you want to stop the service. The only thing you have to be careful of is permissions to stop the service... But I know you work around this if you are having trouble..

-hope this helps.

Joseph L. Poandl
MCSE 2000

If your company is in need of experts to examine technical problems/solutions, please check out
 
Unless you are hooked on writing the script yourself. Buy TechScheduler by Dean software. One of it's many talents is to start/stop services. You can do some fairly elaborate schduling with this product. I think it's like $30 or $40.

If you do decidee to do it from a bat file, be sure to use the Actual name of the service, not always the same as the name displayed in task manager.
 
Write this batch file:

Net Stop FileMaker Server

Do this as a .bat file and then go into scheduler and schedule it to run anytime you want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top