cancel
Showing results for 
Search instead for 
Did you mean: 

run batch file inside Service group

hraju
Level 4
Partner Accredited Certified
How do I run windows batch file inside Service group ?
I use process resource, but this resource is trying to monitor this batch. But there is no process to monitor. Therefor I run the batch like this "C:\windows\system32\cmd.exe /K C:\script\scriptprimary.bat" and I set resource as non critical.
Is it okay ?
1 REPLY 1

Wally_Heim
Level 6
Employee
Hi hraju,

I have a set of sample scripts/batch files that I use with the process agent to run a command.  Bacially, during the online it creates a text file on the server that is the other scripts monitor for.  The monitor just monitors that the text file exists and returns online or offline accordingly.  Then the offlilne simple deletes the text file.

You can easily modify the start script to call your batch file.  These are very simple to use and will need to be modified slightly if you want to change the name or location of the monitor text file.  I'll send you an PM with the scample files.

Thanks,
Wally