PDA

View Full Version : WScript properties & methods



redhawk
03-12-2003, 08:26 AM
Beginner question:
I'm trying to write a script, under visual studio 6.
I opened an asp page and added a client side script.
:
<SCRIPT LANGUAGE=vbscript>
<!--
set WshShell = WScript.CreateObject("WScript.Shell")

'WScript object used to echo information
WScript.Echo "Hello World!" 'VBScript
//-->
</SCRIPT>
Why can't I see the object methods?
What should I do to see them?

adamdelves
03-17-2003, 11:30 AM
This is becuase you are creating the object at runtime. If you insert an object at compile your IDE can look in the objects type library and get all the function and property definitions. Unfortunatly you can only add objects at design time if you are working on a server side script. However to download the windows script host documentation click <a target="_blank" href=http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en>here</a>. This also includes documentation on VBscript and other windows scripting technologies.


P.S Does that script run without a security warning being disaplyed in MSIE?