Error while running a generic Script on Windows Cluster

  • Hi I Have a GenericScript.vbs file but while executing this i could not see output on the command prompt

    <--GenericScript.vbs-->

    Function Online()

    MsgBox("Hello World")

    Online = 0

    End Function

    Function Open()

    Open = 0

    End Function

    Function Close()

    Close = 0

    End Function

    Function LooksAlive()

    LooksAlive = 0

    End Function

    Function IsAlive()

    IsAlive = 0

    End Function

    <--GenericScript.vbs-->

    How do i run my VBScript Block? In which Function do i have to call my MsgBox("Hello World")?

    In the next Step, I will configure this Generic Script as a SQL Server SCP Script while failovering between nodes.

    Kind Regards....

  • You would have a Main() function that would be the one that gets started when the script runs.

    You can either do that or define all your functions as you did and then execute code below all the definitions of the code.



    Ben Miller
    Microsoft Certified Master: SQL Server, SQL MVP
    @DBAduck - http://dbaduck.com

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply