Should scripts that work with WSH also work on an ASP?d 
Author Message
 Should scripts that work with WSH also work on an ASP?d

Some of the samples that you can download from the MS/script site run fine
just using the  WSH, but shouldn't these be "cut and pastable" to add onto
an asp page?  I've done so and it seems to {*filter*}on the WScript object - I
assumed no reference, so referenced the WSH Obj model 1.0 and the
Wscript.exe in the sys32 directory - This appears as WSH 2.0 in the ref.
selection window.  Yet - still chokes on that object.  Any suggestions for
me?  I'll continue to debug if my thinking is right that scripts such as
these are ASPable :)

Thanks anyone,
Chris



Thu, 27 Jun 2002 03:00:00 GMT  
 Should scripts that work with WSH also work on an ASP?d

The "built-in" WScript object is like the ASP objects (Request/Response/etc) or the browser's DOM  objects (window/document).  Each is provided by the host for the script.  Any sample script you see that refers to WScript is an example intended to be executed with wscript.exe or cscript.exe as the host...

--
Michael Harris


  Some of the samples that you can download from the MS/script site run fine
  just using the  WSH, but shouldn't these be "cut and pastable" to add onto
  an asp page?  I've done so and it seems to {*filter*}on the WScript object - I
  assumed no reference, so referenced the WSH Obj model 1.0 and the
  Wscript.exe in the sys32 directory - This appears as WSH 2.0 in the ref.
  selection window.  Yet - still chokes on that object.  Any suggestions for
  me?  I'll continue to debug if my thinking is right that scripts such as
  these are ASPable :)

  Thanks anyone,
  Chris



Thu, 27 Jun 2002 03:00:00 GMT  
 Should scripts that work with WSH also work on an ASP?d

The other common diff is that ASP uses Server.CreateObject whereas WSH has Wscript.CreateObject
Regards,
Ian
WSH FAQ http://www.*-*-*.com/

  The "built-in" WScript object is like the ASP objects (Request/Response/etc) or the browser's DOM  objects (window/document).  Each is provided by the host for the script.  Any sample script you see that refers to WScript is an example intended to be executed with wscript.exe or cscript.exe as the host...

  --
  Michael Harris


    Some of the samples that you can download from the MS/script site run fine
    just using the  WSH, but shouldn't these be "cut and pastable" to add onto
    an asp page?  I've done so and it seems to {*filter*}on the WScript object - I
    assumed no reference, so referenced the WSH Obj model 1.0 and the
    Wscript.exe in the sys32 directory - This appears as WSH 2.0 in the ref.
    selection window.  Yet - still chokes on that object.  Any suggestions for
    me?  I'll continue to debug if my thinking is right that scripts such as
    these are ASPable :)

    Thanks anyone,
    Chris



Thu, 27 Jun 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. debugging a WSH-script with microsoft script editor doesn't work

2. VBScript works in ASP but not WSH

3. Using ASP and WSH to Print on Your Intranet (Why doesn't it work)

4. Using ASP and WSH to Print on Your Intranet (Does not work)

5. Logon script don't work with wsh.

6. wsh 5.6b1 How script-signing works

7. VbCr not working in ASP Email Script

8. script Works from DOS but not from VBScript/ASP

9. after installing WSH on NT4, WSH won`t work

10. Active X controls not working in IE 5.5 but works in IE 6.0

11. ActiveX Events in JScript Not Working (VBScript Works Fine)

12. Why LoadPicture() works on local pathes and doesn't work on the URLS

 

 
Powered by phpBB® Forum Software