Scripting Question: Download Scripting PDF

Explain how to execute WScript & WSH object? How will i create WSH objects?

Tweet Share WhatsApp

Answer:

The WScript object is directly available to all scripts being executed by wscript or cscript and represents the currently running instance of the scripting host executable (wscript or cscript). The WScript object cannot be instantiated directly using CreateObject, however scripts running under WSH can obtain a reference to it via the Application property.

Through the WScript object one can gain access to WSH version information, the paths to the host executable and the script currently being executed, any arguments passed to the script, and the standard input, output and error streams. In addition, the WScript object can be used to instantiate, obtain references to, and bind to COM components. Methods and properties are also available to alter the script timeout values, and to cause the script to sleep for a specified period of time.

Download Scripting PDF Read All 9 Scripting Questions
Previous QuestionNext Question
Explain how to fetch two values from database into two variables in shell scripting?Suppose i m getting Unresponsive Script in FireFox 1.0.5.3...i know i can set dom.max_script_run_time as 20 ..through about:config ..

but it is the part of user..and i want to set this value through javascript code ..?