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

  • "WScript" doe not exist in an HTA or HTML file.


    Monday, April 8, 2019 5:32 AM
  • Is there any way to parse command to cmd from web page??

    Monday, April 8, 2019 5:51 AM
  • I have no idea what that means.  What is a parse command?  What are you trying to do?


    Monday, April 8, 2019 5:55 AM
  • I want to run 'run echo msg>com4' command on cmd from jsp page
    Monday, April 8, 2019 6:09 AM
  • You can't and this is not a web forum.  You cannot run local commands from any web page.

    Post in a forum for the web code you are trying to use.  This forum is only for administrative scripting.


    Monday, April 8, 2019 6:12 AM