Below are revisions for this snippet.

VBScript - ForceCScript





Syndication

Revision Revison 1
This script demonstrates the user of a procedure that forces the currently executing script to execute under the CScript scripting host. This allows the output from WScript.Echo statements to be displayed in a command prompt dialog in a similar way to older style batch files, making this procedure ideal for batch processing.

Typical usage would see the ForceCScript procedure called at the beginning of a script.