Something like this:

Code:

Shell '%comspec% /c net start | find /i "Service name goes here"'



And check @error after the above. @error will be 0 if service is found.

Ussed it to find a custom installed services and shut it down if found.
Works perfect.

Never ussed xnet so don't know about that.


Edited by R2D2 (2005-03-02 06:07 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.