Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
scripts
hosting
jscript
remote
scripting.wsh
scriptlets
vbscript
virus.discussion
  
 
date: Mon, 4 Jul 2005 13:28:26 -0400,    group: microsoft.public.scripting.jscript        back       


WSH script engine for .js scripts   
When running .js scripts from the command line, via cscript.exe, what should
should follow the "//E:" switch?
date: Mon, 4 Jul 2005 13:28:26 -0400   author:   Patrick Spence

Re: WSH script engine for .js scripts   
Never mind... stupid me, "//E:jscript" did the trick


"Patrick Spence"  wrote in message
news:u2FSI3LgFHA.572@TK2MSFTNGP15.phx.gbl...
> When running .js scripts from the command line, via cscript.exe, what
should
> should follow the "//E:" switch?
>
>
>
date: Mon, 4 Jul 2005 13:37:27 -0400   author:   Patrick Spence

Re: WSH script engine for .js scripts   
Patrick Spence wrote:

> When running .js scripts from the command line, via cscript.exe, what should
> should follow the "//E:" switch?

You do not need that switch, you can just execute
   cscript file.js


-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/
date: Mon, 04 Jul 2005 19:37:40 +0200   author:   Martin Honnen

Re: WSH script engine for .js scripts   
"Martin Honnen"  wrote in message
news:OSZAa8LgFHA.3436@tk2msftngp13.phx.gbl...
>
>
> Patrick Spence wrote:
>
> > When running .js scripts from the command line, via cscript.exe, what
should
> > should follow the "//E:" switch?
>
> You do not need that switch, you can just execute
>    cscript file.js

When I do, I get the following error:
Input Error: There is no script engine for file extension ".js".
date: Sun, 10 Jul 2005 12:56:53 -0400   author:   Patrick Spence

Re: WSH script engine for .js scripts   
Patrick Spence wrote:
> "Martin Honnen"  wrote in message
> news:OSZAa8LgFHA.3436@tk2msftngp13.phx.gbl...
>>
>>
>> Patrick Spence wrote:
>>
>>> When running .js scripts from the command line, via cscript.exe,
>>> what should should follow the "//E:" switch?
>>
>> You do not need that switch, you can just execute
>>    cscript file.js
>
> When I do, I get the following error:
> Input Error: There is no script engine for file extension ".js".

Some other application that you have installed has hosed the registry entrys 
for the sctipt related file extensions.  Try reinstalling WSH from the 
standalone WSH install package for your OS.

Microsoft Windows Script Downloads
http://msdn.microsoft.com/downloads/list/webdev.asp?frame=true


-- 
Michael Harris
Microsoft MVP Scripting
date: Sun, 10 Jul 2005 14:47:01 -0700   author:   Michael Harris \(MVP\) mikhar at mvps dot org

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us