Re: [PATCH] Support .wsf hook scripts
Thanks for the explanation, Stuart. I went ahead and committed your
suggested change in r18972.
On Mon, 20 Mar 2006, Stuart Celarier wrote:
> Good question, Dan.
> The .wsf format is a universal container. It can host both JScript and
> VBScript, any other configured script engine, and even mix script hosts
> in the same file. There is also an include mechanism, so .js and .vbs
> files can be used in situ within .wsf files.
> That being the case, I don't see much an advantage in adding .js and
> .vbs as extensions. I would not be opposed to adding them either, unless
> there is a performance penalty.
> Here's a sample of .wsf syntax that illustrates how a scripting language
> is specified:
> <job id="main">
> <script language="JScript">
> var shell = new ActiveXObject( "WScript.Shell" );
> if ( _some_expression_ )
> shell.Quit( 1 );
Received on Tue Mar 21 00:36:52 2006
- application/pgp-signature attachment: stored
This is an archived mail posted to the Subversion Dev