windows-nt/Source/XPSP1/NT/base/cluster/admin/msclus/vbscript/deleteresource.vbs

31 lines
598 B
Plaintext
Raw Normal View History

2020-09-26 03:20:57 -05:00
Option Explicit
Main
Sub Main
On Error Resume Next
Dim oCluster
Dim oTestRes
Dim sCluster
Set oCluster = CreateObject("MSCluster.Cluster")
sCluster = InputBox( "Cluster to open?" )
oCluster.Open( sCluster )
Set oTestRes = oCluster.Resources.Item("Dummy")
oTestRes.Delete()
If Err.Number <> 0 Then
If Err.Number = 424 Then
MsgBox "Dummy resource does not exist!"
Else
MsgBox "Error return is " & Err.Number
End If
End If
' This will return "Invalid procedure call or argument" if the resource
' does not exist!
End Sub