Home » questions » Is it possible to execute Windows Script Hosting procedures in a web page script.?

Is it possible to execute Windows Script Hosting procedures in a web page script.?

2006-08-04 23:33:11, Category: Programming & Design
IE doesn't seem to support wsh objects and methods. I keep getting errors like "Object required 'WScript'" and "ActiveX component cannot create object 'GetObject'. Is there some libraries you can include to IE. If not is there a way to call a .vbs or .js file from a web page? If it can be done via AciveX, how??? All the sample codes not working on my 'puter. As far as the security issues, the site this is for is username/password protected and only will have about 8 users. Re: ActiveX, the following code does not error it just does nothing.

Answers

  1. masku darling

    On 2006-08-04 23:40:28


    u can call a function written in some other .js file or u can call a vb function written in .vbs file but nowadays browsers will not allow u to run a script file directly from ur code because of security reasons.
  2. Kryzchek

    On 2006-08-04 23:45:22


    If you want to run the script on your server, you'd simply use ASP. If you want to run a script on your client's machine, you'd have to use Active X. It's a huge security fault to allow a website to run a script on a client's machine.