*Result*: Function Determines the Script Host On the Fly.

Title:
Function Determines the Script Host On the Fly.
Authors:
Source:
Windows Scripting Solutions. Dec2005, Vol. 7 Issue 12, p11-12. 2p.
Database:
Supplemental Index

*Further Information*

*The article describes how to determine the script host in Windows Script Host scripts. Determining the script host is important when a script uses the WScript object's Echo method repeatedly to display output. Both versions of the ScriptHost function use the WScript object's FullName property, which returns the fully qualified path and filename of the script host. The VBScript and JScript functions use language-appropriate methods for extracting the filename and lowercasing it. The VBScript version uses the Mid function to extract the filename.*