In:
TCC 10.00.67 Windows XP [Version 5.1.2600]
TCC Build 67 Windows XP Build 2600 Service Pack 3
Registered to Carl Johnson - 1 System License
I'm trying to use @SERVICE to (initially) check if a service is running or not. First I issued a SERVICES command with the following result:
[C:\]services MSSQL$SQLX2005_I0
MSSQL$SQLX2005_I0 (SQL Server (SQLX2005_I0)) Running
Then I issued the following @SERVICE command but the result doesn't look anything like what the Help documents:
[C:\]ECHO %@SERVICE[MSSQL$SQLX2005_I0,2]
5898240
[C:\]ECHO %_?
0
Info 2 is supposed to give the "current state of the service", but I get the same result whether or not the service is running or stopped. What am I doing wrong?
Carl
TCC 10.00.67 Windows XP [Version 5.1.2600]
TCC Build 67 Windows XP Build 2600 Service Pack 3
Registered to Carl Johnson - 1 System License
I'm trying to use @SERVICE to (initially) check if a service is running or not. First I issued a SERVICES command with the following result:
[C:\]services MSSQL$SQLX2005_I0
MSSQL$SQLX2005_I0 (SQL Server (SQLX2005_I0)) Running
Then I issued the following @SERVICE command but the result doesn't look anything like what the Help documents:
[C:\]ECHO %@SERVICE[MSSQL$SQLX2005_I0,2]
5898240
[C:\]ECHO %_?
0
Info 2 is supposed to give the "current state of the service", but I get the same result whether or not the service is running or stopped. What am I doing wrong?
Carl