SCRIPT424: Object required: 'WScript' RRS feed

  • Question

  • I am getting error "SCRIPT424: Object required: 'WScript' ", following is my code

          <script language = "vbscript"  type = "text/Vbscript"> 
    Function cmdRun()
    Dim msg
    msg = "Press the ENTER key to continue."
    WScript.StdOut.Write msg
    Do While Not WScript.StdIn.AtEndOfLine
    Input = WScript.StdIn.Read(1)
    WScript.Echo "The script is complete."
    End Function

          <input type = "button" onclick = "cmdRun()" value = "Run" />

    I am trying to parse massage to cmd
    • Edited by bs_bro Monday, April 8, 2019 5:07 AM
    • Moved by Bill_Stewart Wednesday, September 4, 2019 8:50 PM Unanswerable drive-by question
    Monday, April 8, 2019 5:02 AM

All replies