Re: Wscript.Echo error in VBS Embeded in HTML

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Dan Khanseitov (dankh(nospam_at_)mail.ru)
Date: 03/11/05


Date: Fri, 11 Mar 2005 11:05:33 +0600

Lost... brought next idea :
> Hi All:
>
> I have a script that I am writing that is basicly an HTML file with embeded
> VBS Coding. I am basicly designing the script so that it uses a small
> browser to open and have the user input an User ID & Server name (Via Text
> Input boxes) and when the click the submitt button the script goes off and
> verifies that a user folder is not on a share, and then creates it, shares
> it, permissions and reports to a log any errors. Now here is my problem.
> All of my VBS code is located in one big sub routine that is called when the
> user clicks the button in the browser. Now any time that I try to access
> anything with Wscript (Wscript.sleep or Wscript.echo) If give me an error
> stating "Object Required: Wscript". Any suggestions on how to avoid this so
> that I can use the wscript object. Thanks
>
> Lost

Try to convert your html page to HTA application, it's a better way to
do what you want.



Relevant Pages

  • Re: Questions about GetRef() and ASP, etc.
    ... > stack does NOT extend into a called procedure's scope. ... > script requires catch-all error handling, however, it is often best to set ... > unexposed functions, mix VBS and JS, etc. WSCs are fairly well documented ... > The Err object appears to be misdocumented in the MS VBS documentation. ...
    (microsoft.public.scripting.vbscript)
  • Re: Re: vbs to exe
    ... when i wanted to configure a windows service to run my vbs code. ... An EXE is compiled. ... nothing to do with script. ... consider the "installer option" for converting ...
    (microsoft.public.scripting.vbscript)
  • Re: Help with values for Error Trapping
    ... The point of a script like VBS is to use many different ... The Err object is an intrinsic global object available under all hosts. ... is error-trapping status in effect at any level in the stack. ...
    (microsoft.public.scripting.vbscript)
  • Re: Help with values for Error Trapping
    ... The point of a script like VBS is to use many different ... >The Err object is an intrinsic global object available under all hosts. ... >is error-trapping status in effect at any level in the stack. ...
    (microsoft.public.scripting.vbscript)
  • Re: An executable file to run a VB script?
    ... do directly from VBA and what does Excel offer that you couldn't do entirely ... with a vbs script? ... of the script host. ... mode and wscript.exe will run vbs files with the windows user ...
    (microsoft.public.excel.programming)