Solved

I there a way to run a batch file when a specific service starts

Posted on 2008-10-12
2
182 Views
Last Modified: 2012-05-05
I need to run a batch file when a specifi service starts. Any way of accomplish this?

Thanx
0
Comment
Question by:koujaianh
2 Comments
 
LVL 3

Accepted Solution

by:
Spydergt earned 125 total points
ID: 22700071
If there is an event that is written to the log when the service starts you may be able to use an event trigger to launch your script.

http://technet.microsoft.com/en-us/library/cc773308.aspx

Im not sure which OS your using but it may work =)
0
 

Author Closing Comment

by:koujaianh
ID: 31406207
Thanx. That worked.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question