WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: petertohen on November 07, 2017, 06:33:13 AM

Title: How can I determine its dependents?
Post by: petertohen on November 07, 2017, 06:33:13 AM
I know I can use wntSvcCfgGet to determine a service's dependencies.  How can I determine its dependents?
http://www.winbatch.com/download.html
Title: Re: How can I determine its dependents?
Post by: td on November 07, 2017, 07:11:50 AM
Quote from: petertohen on November 07, 2017, 06:33:13 AM
I know I can use wntSvcCfgGet to determine a service's dependencies.  How can I determine its dependents?
http://www.winbatch.com/download.html

You use request 6.   From the Consolidated WIL Help file entry for wntSvcCfgGet:

"Dependencies:

A tab-delimited list of names of services or load ordering groups that must start before this service. If a blank string, the service has no dependencies. If a group name is specified, it must be prefixed by a '+' character to differentiate it from a service name, because services and service groups share the same name space. Dependency on a service means that this service can only run if the service it depends on is running. Dependency on a group means that this service can run if at least one member of the group is running after an attempt to start all members of the group."