Zoomed Image

AMSX Scripting Language - Command : ServiceRunning

Summary

Check whether a Windows service is running

Description

Queries the Windows Service Control Manager and sets MSRESULT to 1 if the named service is in the Running state, or 0 otherwise.

Parameters

ParameterDescription
cmdWindows service name

Syntax


ServiceRunning "Windows service name"

Return to the AMSX Command Reference