Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#61 Set ERRORLEVEL if remote system is not available

open
5
2008-08-18
2008-08-18
Anonymous
No

It would be nice if sydi-server returns an errorlevel to the shell when one of the remote systems are not available. This helps when you use Sydi within other scripts.

e.g. change
errGatherWMIInformation = GatherWMIInformation()
If (errGatherWMIInformation) Then
If (bDoRegistryCheck) Then
errGatherRegInformation = GatherRegInformation
End If
GetWMIProviderList
End If

------------------------------
To

errGatherWMIInformation = GatherWMIInformation()
If (errGatherWMIInformation) Then
If (bDoRegistryCheck) Then
errGatherRegInformation = GatherRegInformation
End If
GetWMIProviderList
Else
WScript.Quit(99)
End If

Discussion